Skip to content

Printing SDL drops ‘mutation’ #370

@Shane32

Description

@Shane32

When prettifying a mutation, the mutation keyword is removed from the output.

public static string Prettify(string query)
{
    var document = Parser.Parse(query);
    return new SDLPrinter().Print(document);
}

string query = Prettify("""
  mutation {
    bulkOperationCancel {
      bulkOperation {
        id
      }
    }
  }
  """);

Result:

{
  bulkOperationCancel {
    bulkOperation {
      id
    }
  }
}

Originally posted by @clement911 in #365 (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