Retriving the multiple reference schema using graphql

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

Hi @Sebastian I want the support regarding the retriving the multiple reference schema
Below I am sharing the output of rest api which contains reference schema i have to convert that to graphql


In the above section there is one array containing single object in that one Content property contains 3 reference schema
When we pass all that 3 schemas as a parameter in the postman than i get array containig 3 objects
Sharing the screenshot of rest api which contains 3 schema id of content as a parameter

In the above screenshot there are 3 objects inside an array and inside every object there is content property and that content property contains 3 different schemas which contains our data
Remember that for 3 object content contains 3 different schemas
Remaining screenshot of 2 different objects


Below screenshot of graphql query i travel till the array of 3 objects but further i am not able

Expected behavior!

Minimal reproduction of the problem

Environment

App Name:

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [ ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Hi @Sebastian Is there any solution for my above problem

Now getting this kind of error how to use inline fragments in my query is there any error in my graphql query @Sebastian

Hey,

just read this: https://www.apollographql.com/docs/apollo-server/schema/unions-interfaces/#querying-a-union

Hi @Sebastian Thank you for the reply the issue is solved by using the inline fragments in the graphql query