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
-`UseStringDescriptions()` enables the usage of double quoted and triple quoted. When this is not enabled, comments are parsed as descriptions instead.
106
+
-`UseFieldResolvers()` specifies whether to use struct field resolvers.
107
+
-`MaxDepth(n int)` specifies the maximum field nesting depth in a query. The default is 0 which disables max depth checking.
108
+
-`MaxParallelism(n int)` specifies the maximum number of resolvers per request allowed to run in parallel. The default is 10.
109
+
-`Tracer(tracer trace.Tracer)` is used to trace queries and fields. It defaults to `trace.OpenTracingTracer`.
110
+
-`ValidationTracer(tracer trace.ValidationTracer)` is used to trace validation errors. It defaults to `trace.NoopValidationTracer`.
111
+
-`Logger(logger log.Logger)` is used to log panics during query execution. It defaults to `exec.DefaultLogger`.
Errors returned by resolvers can include custom extensions by implementing the `ResolverError` interface:
@@ -151,12 +162,6 @@ Which could produce a GraphQL error such as:
151
162
}
152
163
```
153
164
154
-
### Community Examples
155
-
156
-
[tonyghita/graphql-go-example](https://github.com/tonyghita/graphql-go-example) - A more "productionized" version of the Star Wars API example given in this repository.
157
-
158
-
[deltaskelta/graphql-go-pets-example](https://github.com/deltaskelta/graphql-go-pets-example) - graphql-go resolving against a sqlite database.
159
-
160
-
[OscarYuen/go-graphql-starter](https://github.com/OscarYuen/go-graphql-starter) - A starter application integrated with dataloader, psql and basic authentication.
0 commit comments