python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Mongoose update an object in a nested array of object inside a collection
i have this code :
const updateComment = async (req, res) => {
try {
const post = await Post.findById(req.body.postId);
const comment = post.comments.find(
(comment) => comment.i...
aasem shoshari
Votes: 0
Answers: 1
Successful GraphQL Mutation keeps Returning Undefined
I am sending a mutation over from a React Native Frontend to a NodeJs / GraphQL Backend. The mutation request goes through, and a mutation occurs, but back on the frontend, the value of that mutation ...
user17306847
Votes: 0
Answers: 1
React Native Mutation using GraphQL Won't hit Backend, returns 400 error instead
I'm using GraphQL for a React Native Project, and most of my mutations work fine but one of them just refuses to work. The mutation must work on the backend, because when I try running the mutation th...
user17306847
Votes: 0
Answers: 1
GraphQL: how to avoid values overwrites for unspecified fields when doing an update via a mutation
Let me explain:
I am using Gson as deserializer, MongoDB as storage and the newly Spring GraphQL
Let's say I have an object O in database with the fields:
A = 6
B = null
If the frontend send an updat...
Christophe Bouillaud
Votes: 0
Answers: 1