type Deity {
name: String!,
children: [Deity]
}
type Query {
deities(q: String) : [Deity]
}
Is it possible to implement resolvers that fetch all children for all the deities in one batch? Let's assume that you can resolve the list of all deities in one call, too.
Currently I only know how to write a lazy resolver for children which would be called for every Deity found in the resolver of deities(q: String).
Could it by done by customizing the Monad m maybe?
Is it possible to implement resolvers that fetch all
childrenfor all the deities in one batch? Let's assume that you can resolve the list of all deities in one call, too.Currently I only know how to write a lazy resolver for
childrenwhich would be called for everyDeityfound in the resolver ofdeities(q: String).Could it by done by customizing the Monad
mmaybe?