You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library contains a lexer and parser as well as the complete [GraphQL AST model](http://spec.graphql.org/October2021/#sec-Appendix-Grammar-Summary)
17
13
that allows you to work with GraphQL documents compatible with the [October 2021 spec](https://spec.graphql.org/October2021/).
@@ -78,15 +74,82 @@ Default implementation traverses all AST nodes of the provided one. You can
78
74
inherit from it and override desired methods to implement your own AST
79
75
processing algorithm.
80
76
77
+
### SDLPrinter
78
+
81
79
For printing SDL from AST, you can use `SDLPrinter`. This is a highly
82
80
optimized visitor for asynchronous non-blocking SDL output into provided
83
81
`TextWriter`. In the majority of cases it does not allocate memory in
84
-
the managed heap at all.
82
+
the managed heap at all. Extension methods are also provided for printing
83
+
directly to a string, which utilize the `StringBuilder` and `StringWriter`
84
+
classes.
85
+
86
+
```csharp
87
+
vardocument=Parser.Parse("query { hero { name age } }");
0 commit comments