hasura / hasura/graphql-engine
Remote Schema Permissions gives a result of " \"endOfInput\"","
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Version Information
Server Version: fedormelexin/graphql-engine-arm64:v2.0.10.cli-migrations-v3
### Environment
Cloud and in this engine
### What is the expected behaviour?
Right now I am trying to add remote schema permissions from Hasura to GraphCMS
### Keywords
Remote Schema, Remote permissions, schema stitching, GraphCMS remote schema permissions
### What is the current behaviour?
With GraphCMS we have to give a default value to the `where: stage: locales:` fields. I am inserting values in the following syntax: {"PUBLISHED"} and {[nl_NL]}, it results in the following error:
`{
"path": "$.args[0].args.definition.schema",
"error": "parsing the schema document: \"endOfInput\"",
"code": "parse-failed"
}`
This is assuming that I did everything correctly, it gives a result of " \"endOfInput\"","
### How to reproduce the issue?
1. Add a remote schema to GraphCMS with full permissions [How-to](https://graphcms.com/blog/hasura-fit-setting-up-hasura)
2. Pick a standard GraphCMS setup, now you should see some tables in Hasura.
3. Add HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS env variable to _true_.
4. Now try to add remote permissions to Type Query, select a table and you will get this error.
### Screenshots or Screencast


### Please provide any traces or logs that could help here.

### Any possible solutions?
Sorry, no.
### Can you identify the location in the source code where the problem exists?
No, wish I could.
### If the bug is confirmed, would you be willing to submit a PR?
Unfortunately, I am not a genius
Contributor guide
Assessment
This issue has not been assessed yet.