Tag: graphql-batch
-
Rails graphql-batch: Dependent fields that use loaders
0 I have a Rails 7 GraphQL API, and I’m using the graphql-batch custom loaders to handle some n+1 query issues. In my GraphQL type definition, I have two fields, has_upcoming_schedule and has_available_spot. I want to modify the has_available_spot field so that it returns nil unless there are upcoming schedules. Only if the program has…