Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

RelayModernGraphQLTag: Expected an request #221

Open
fenglu09 opened this issue Apr 19, 2018 · 5 comments
Open

RelayModernGraphQLTag: Expected an request #221

fenglu09 opened this issue Apr 19, 2018 · 5 comments

Comments

@fenglu09
Copy link

fenglu09 commented Apr 19, 2018

Run this project local. With the error below

ExceptionsManager.js:63 RelayModernGraphQLTag: Expected an request, 
got `{"fragment":{"argumentDefinitions":[],"kind":"Fragment","metadata":null,"name":"F8DemosViewQuery","selections":
[{"kind":"LinkedField","alias":null,"args":null,"concreteType":"Demo","name":"demos","plural":true,
"selections":[{"kind":"ScalarField","alias":null,"args":null,"name":"title","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"description","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"booking","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"location","storageKey":null},
{"kind":"LinkedField","alias":null,"args":null,"concreteType":"DemoLink","name":"links","plural":true,
"selections":[{"kind":"ScalarField","alias":null,"args":null,"name":"title","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"url","storageKey":null}],"storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logo","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logoHeight","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logoWidth","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"devGarage","storageKey":null}],"storageKey":null}]
,"type":"Query"},"id":null,"kind":"Batch","metadata":{},"name":"F8DemosViewQuery","query":
{"argumentDefinitions":[],"kind":"Root","name":"F8DemosViewQuery","operation":"query",
"selections":[{"kind":"LinkedField","alias":null,"args":null,"concreteType":"Demo","name":"demos","plural":true,
"selections":[{"kind":"ScalarField","alias":null,"args":null,"name":"title","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"description","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"booking","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"location","storageKey":null},
{"kind":"LinkedField","alias":null,"args":null,"concreteType":"DemoLink","name":"links","plural":true,
"selections":[{"kind":"ScalarField","alias":null,"args":null,"name":"title","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"url","storageKey":null}],"storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logo","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logoHeight","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"logoWidth","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"devGarage","storageKey":null},
{"kind":"ScalarField","alias":null,"args":null,"name":"id","storageKey":null}],"storageKey":null}]},
"text":"query F8DemosViewQuery {\n  demos {\n    title\n    description\n    booking\n    location\n   
 links {\n      title\n      url\n    }\n    logo\n    logoHeight\n    logoWidth\n    devGarage\n    id\n  }\n}\n"}`.

image

@hrdzkj
Copy link

hrdzkj commented Apr 23, 2018

i have the same issue

@wholwh
Copy link

wholwh commented Apr 25, 2018

i meet this problem in android.

@ly-sun
Copy link

ly-sun commented May 7, 2018

I have the same problem.How should i handle?

@PandaGeek1024
Copy link

PandaGeek1024 commented Jun 10, 2018

Got the same issue, no one has a fix?

@bogdan0083
Copy link

I've found a way to fix this:

  1. Upgrade graphql package to 0.13.2 (or newer version)
  2. (not sure if this needed) run yarn graphql or npm run graphql
  3. re-compile graphql files (run yarn relay or npm run relay)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants