Skip to content

monaco-graphql recursive variables not working #2685

Open
@dvh91

Description

@dvh91

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions