fix __schema
This commit is contained in:
parent
a66823640e
commit
b8f49676ff
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user