fix __schema

This commit is contained in:
Nimer Farahty 2025-05-31 19:02:41 +03:00
parent a66823640e
commit b8f49676ff

View File

@ -115,7 +115,7 @@ func AuthorizeOperation(ctx context.Context) error {
object := graphql.GetRootFieldContext(ctx).Field.Name object := graphql.GetRootFieldContext(ctx).Field.Name
action := string(graphql.GetOperationContext(ctx).Operation.Operation) action := string(graphql.GetOperationContext(ctx).Operation.Operation)
if object == "__type" { if object == "__type" || object == "__schema" || object == "__typename" {
return nil return nil
} }