Skip to content

Batching of resolvers / data fetching #348

@smatting

Description

@smatting
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ featureLabel for versioning: New feature (minor bump)📦 mainLabel for affected Package: "morpheus-graphql"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions