diff --git a/docs/content/reference/introspection.md b/docs/content/reference/introspection.md index 5eb821f6838..b2460106786 100644 --- a/docs/content/reference/introspection.md +++ b/docs/content/reference/introspection.md @@ -29,7 +29,7 @@ srv := httptest.NewServer( handler.GraphQL( NewExecutableSchema(Config{Resolvers: resolvers}), handler.RequestMiddleware(func(ctx context.Context, next func(ctx context.Context) []byte) []byte { - if userForContext(ctx).IsAdmin { + if !userForContext(ctx).IsAdmin { graphql.GetRequestContext(ctx).DisableIntrospection = true }