Answer the question
In order to leave comments, you need to log in
How to fix an error when requesting data?
Request:
query($id: ID) {
movie(id: $id) {
id
name
director{
name
}
}
}
{
"errors": [
{
"message": "Operation `movies.findOne()` buffering timed out after 10000ms",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"movie"
]
}
],
"data": {
"movie": null
}
}
const Query = new GraphQLObjectType({
name: 'Query',
fields: {
movie: {
type: MovieType,
args: { id: { type: GraphQLID } },
resolve(parent, args) {
return Movies.findById(args.id);
},
},
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question