By default, most of our GraphQL calls are implemented by call to Elasticsearch with extensive aggregations turned on.
Many times we do not use the results of these aggregations.
GraphQL lookahead allows us to peak into the structure of a graphql query.
We might be able to use this to see if certain fields/aggregations are necessary for the GQL results. This would allow us to potentially drop those fields from the ElasticSearch Query
By default, most of our GraphQL calls are implemented by call to Elasticsearch with extensive aggregations turned on. Many times we do not use the results of these aggregations.
GraphQL lookahead allows us to peak into the structure of a graphql query.
We might be able to use this to see if certain fields/aggregations are necessary for the GQL results. This would allow us to potentially drop those fields from the ElasticSearch Query
https://graphql-ruby.org/queries/lookahead