-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @GraphQLContext for batching without @Batched #48
Comments
Dataloader offers a very different strategy. To use dataloader, you must write the batch loader functions yourself and then change your logic to fetch data through the dataloader instead of directly. Unlike the previous model, it's not down to the execution strategy, but down to how you write your datafetchers. SPQR doesn't know what your methods do, so you need to change your own code to use the dataloader. You might want to create a Keep in mind, SPQR only really deals with assembling the schema and wiring your methods as datafetchers. Actually executing the queries you do using graphql-java directly. |
You can see a simple example of using |
Is exists way to use
@GraphQLContext
for batching not via@Batched
annotation?For example for batching via https://github.com/graphql-java/java-dataloader?
Or only one way to explicitly connect it via model?
The text was updated successfully, but these errors were encountered: