0

1. I want to create a GraphQL query that can filter by multiple records.
It is about filtering details of statistics. For example, the statistic contains the fields "Number of deaths", "Number of cases", "Number of recovered".
I have already written queries that can filter by the individual fields. Now I want to program a query that uses multiple filters, or a query in which multiple queries are nested.
I have already tried to define the individual steps of each query in a common query. You can see this in the attached images. The program compiles first. However, when I execute the query in the GraphQL UI, I get error messages

2. Unfortunately, I have not yet received any helpful tips regarding my query or my error.

Screenshot

At the top left you can see the individual queries, at the top right the merged query and at the bottom the errors as soon as I try to execute the query.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Güten tag and welcome to SO. Please include the relevant parts of your GraphQL schema (typeDefs) especially the definition of the query that you're trying to run. Also please paste your code into the question rather than using a screenshot as we can't copy/paste code from screenshots and they're also not searchable. – Michel Floyd Oct 07 '22 at 19:53

0 Answers0