We need to rename the fields in the graphQL, so we get the AST of the GraphQL firstly, and modify it as we need. However, I can't find any solution to convert the AST back to the GraphQL.
The parser I use is "GraphQL Dotnet Parser"
We need to rename the fields in the graphQL, so we get the AST of the GraphQL firstly, and modify it as we need. However, I can't find any solution to convert the AST back to the GraphQL.
The parser I use is "GraphQL Dotnet Parser"
Copyright © 2021 Jogjafile Inc.
There is a
AstPrinterclass that can print out theDocumentor any Ast Node.https://github.com/graphql-dotnet/graphql-dotnet/blob/master/src/GraphQL/Utilities/AstPrinter.cs
AstPrinter.Print(…)