Merge pull request #4896 from strapi/docs/policyGraphQL

Update policies documentation to include link to GraphQL doc
This commit is contained in:
Alexandre BODIN 2020-01-06 09:45:03 +01:00 committed by GitHub
commit 6e34ae4b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,10 @@ You can access to any controllers, services or models thanks to the global varia
To apply policies to a route, you need to associate an array of policies to it. There are two kinds of policies: global or scoped.
::: warning
To apply policies with GraphQL please see the [following guide](../plugins/graphql.md#execute-a-policy-before-a-resolver)
:::
### Global policies
The global policies can be associated to any routes in your project.