Skip to content

Commit

Permalink
docs: add note about mutation authorize: deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebarretofv authored and palkan committed Oct 7, 2020
1 parent 33ebf27 commit 77a7dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Check out this issue on how you can implement a `verify_authorized` callback for

### Using `preauthorize: *` with mutations

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).
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).

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

Expand Down

0 comments on commit 77a7dd6

Please sign in to comment.