graphql / graphql/graphiql

monaco-graphql recursive variables not working

Open
#2,685 4 comments 0 reactions 0 assignees View on GitHub
bug confirmed bug monaco-graphql
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

schema def:
```
schema {
query: query_root
}

input string_options {
_eq: String
_ilike: String
}

type issues {
name: String
}

input issues_where_input {
_and: [issues_where_input!]
name: string_options
}

type query_root {
issues(where: issues_where_input): [issues!]!
}
```

query:
```
query Example(
$where: issues_where_input! = {}
) {
issues(where: $where) {
name
}
}
```

note the `_and` in the `issues_where_input`. when it's there, the variables json failed to work properly and the whole monaco intellisense based on the query variables is broken.

Not sure if this meant to be working or it's a known limitation of nested json schema generation behind the scenes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.