Skip to content

Commit 77a7dd6

Browse files
andrebarretofvpalkan
authored andcommitted
docs: add note about mutation authorize: deprecation
1 parent 33ebf27 commit 77a7dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/graphql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Check out this issue on how you can implement a `verify_authorized` callback for
168168

169169
### Using `preauthorize: *` with mutations
170170

171-
Since mutation is also a GraphQL field, we can also use our custom `authorize: *` and `preauthorize: *` options. Using `authorize: *` doesn't make any sense because it's called after the field has been resolved (i.e., mutation has been executed).
171+
Since mutation is also a GraphQL field, we can also use our custom `authorize: *` and `preauthorize: *` options. However, using `authorize: *` for mutations is deprecated and will raise an error in the future versions: it doesn't make any sense because it's called after the field has been resolved (i.e., mutation has been executed).
172172

173173
It is possible to override the default _raising_ behaviour for mutation only via the following configuration option:
174174

0 commit comments

Comments
 (0)