Skip to content

Formatter makes invalid GraphQL for unnamed query #401

Description

@nightroman

Please find attached XUnit test project with the problem case ready to run:

Test.zip

This unnamed GraphQL query

query ($after: String, $first: Int!, $workspaceUrl: String!) {
  desProjects(after: $after, first: $first, workspaceUrl: $workspaceUrl) {
    nodes {
      id
      name
      previewUrl
      description
    }
    pageInfo {
      endCursor
      hasNextPage
    }
  }
}

becomes invalid GraphQL after formatting, due to removed query:

($after: String, $first: Int!, $workspaceUrl: String!) {
  desProjects(after: $after, first: $first, workspaceUrl: $workspaceUrl) {
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions