You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a generated schema from Graph.Cool that has the User type implementing two interfaces: Node and AnonymousUser. This looks like standard multiple inheritance. The Relay Compiler rejects this, however if I use an ampersand it works (implements Node & AnonymousUser vs. implements Node, AnonymousUser). A change in the SDL spec seems to have caused the get-graphql-schema to fall out of date.
Reproduction
I'm able to reproduce this consistently
Expected behavior?
Commas should be converted to ampersands when listing inheritance references. FB Relay Team feedback confirms:
This is due to a change in the SDL spec that was implemented in graphql-js v0.13. While graphql-js can technically accept an option to enable legacy parsing, it is not exposed in relay-compiler.
The simplest way to make this work would be to make get-graphql-schema work with graphql-js v0.13
I am using a generated schema from Graph.Cool that has the User type implementing two interfaces: Node and AnonymousUser. This looks like standard multiple inheritance. The Relay Compiler rejects this, however if I use an ampersand it works (implements Node & AnonymousUser vs. implements Node, AnonymousUser). A change in the SDL spec seems to have caused the get-graphql-schema to fall out of date.
Reproduction
I'm able to reproduce this consistently
Expected behavior?
Commas should be converted to ampersands when listing inheritance references. FB Relay Team feedback confirms:
facebook/relay#2364
The text was updated successfully, but these errors were encountered: