Andi Winata
Jul 25, 2017 · 1 min read

When I’m using fetchQuery the response that I received doesn’t contain the data that I want, instead it contains some object with similar structure to the fragment.

e.g.

{
"author": {
"assetsConnection": {
"__fragments": {
"AssetsConnectionFragment_showMoreData": {}
},
"__id": "client:8:assetsConnection{\"brand\":\"somebrand\",\"count\":11}"
}
}
}

There are these weird variables __fragments and __id , which I assume will be used by relay createFragmentContainer ?

Is there anyway to use fetchQuery without using createFragmentContainer ?

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade