const createNewComment = async (e, content) => {
e.preventDefault()
const Posts = Moralis.Object.extend("Comments");
const query = await new Moralis.Query(Posts);
query.equalTo(post.title, resultId);
const x = await query.first();
const newComment = Moralis.Object.extend("Comments");
const comment = new newComment();
comment.set("content", content);
comment.set("author", Moralis.User.current());
comment.set("post", x);
comment.save();
console.log(comment)
}
Can you query.equalto
the value of a pointer? So in my database I have a pointer with the posts that corresponds to the comment and I want to render all those that equalto the id of the post. Is that possible?