-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not finding local schema extensions #3986
Comments
In relay-compiler document, we can set 'schemaExtensions' option. After setting 'schemaExtensions', my client schema extension worked. I guess the documentation need explicit explanation. |
Thanks for reporting. I think @beingbook is right, and we need to update documentation to mention the |
Yup, adding a folder which contains the schema extensions to the |
Thanks for the report @rokn and the solution @beingbook. Would either of you like to like to contribute a fix to the docs? |
Let me try documentation coming week. |
Hey, I've tried adding a local client schema extension as described here: https://relay.dev/docs/guides/client-schema-extensions/
The problem arises when I try to compile a query which uses this extensions. I've set-up a tiny example repo which showcases the problem: https://github.com/rokn/relay-example-local-schema/
There is one schema in data/schema.graphql
And one extension schema in src/clientSchema.graphql
When I try to run the relay compiler I get the following error:
If I add the extension schema to be part of the main schema there are no problems compiling it.
The text was updated successfully, but these errors were encountered: