Skip to content

Formatter makes invalid GraphQL for unnamed query #401

Closed

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

  1. nightroman commented on Feb 2, 2026

    @nightroman
    Author

    Is this project still alive?

  2. Shane32 commented on Feb 2, 2026

    @Shane32
    Member

    Sorry I didn't see this issue.

  3. Shane32 commented on Feb 2, 2026

    @Shane32
    Member

    Published in 9.5.1

  4. nightroman commented on Feb 2, 2026

    @nightroman
    Author

    Thank you! Apologies for some impatience.

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