Hi, Iโm trying to call my Cloud Function. It is working without params, but when I use params, itโs not received by the cloud function.
This is my Tryuser.js
import React from "react";
import Moralis from "moralis/dist/moralis.min.js";
import { useEffect } from "react";
export const TryUser = () => {
useEffect(async () => {
const params = { movie: "The Matrix" };
const ratings = await Moralis.Cloud.run("averageStars", params);
console.log(ratings);
});
return <div></div>;
};
And this is my cloud function
Moralis.Cloud.define("averageStars", async (request) => {
logger.info("Hello World", request.params);
});
This is what the logger shows, it does not show any params
Please help.