Skip to content

Is there a way to batch/combine field resolvers? #1214

Answered by MichalLytek
kaysond asked this question in Q&A
Discussion options

You must be logged in to vote

are field resolvers how type-graphql implements what Apollo Server calls resolver chains?

It's a standard GraphQL concept, not an Apollo feature.

I'm still fetching the entire payload

You need something like #10, to know before fetching the data which fields are requested.
But have in mind that it's dangerous because other field resolvers now can't expect all the fields to be present in @Root().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kaysond
Comment options

Answer selected by kaysond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants