You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does anyone know how the resolvers and schema files should look like to be able to make nested queries when using MongoDB? For example, how to get the name of the author of a post?
GraphQL query
query GetPost {
post(id: "63948ab53a9483a31b35639b") {
id
author {
name
}
title
text
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Does anyone know how the resolvers and schema files should look like to be able to make nested queries when using MongoDB? For example, how to get the name of the author of a post?
GraphQL query
schema.graphqls
schema.resolvers.go
Beta Was this translation helpful? Give feedback.
All reactions