diff --git a/docs/content/reference/introspection.md b/docs/content/reference/introspection.md index daa26c6cb0..c1acb1e816 100644 --- a/docs/content/reference/introspection.md +++ b/docs/content/reference/introspection.md @@ -29,7 +29,7 @@ Introspection can also be enabled on a per-request context basis. For example, y srv := handler.NewDefaultServer(es) srv.AroundOperations(func(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler { if !userForContext(ctx).IsAdmin { - graphql.GetOperationContext(ctx).DisableIntrospection = true + graphql.GetRequestContext(ctx).DisableIntrospection = true } return next(ctx)