Skip to main content

7 docs tagged with "policies"

View all tags

Advanced policies for GraphQL

Requests sent to the GraphQL API pass through Strapi's middlewares and policies system. Policies can be attached to resolvers to implement complex authorization rules, as shown in the present short guide.

Error handling

With Strapi's error handling feature it's easy to send and receive errors in your application.

GraphQL plugin

Use a GraphQL endpoint in your Strapi project to fetch and mutate your content.

Plugins extension

Existing plugins can be overriden by placing code in /src/extensions or using global register/bootstrap hooks. Instructions in this documentation cover reshaping plugin content-type schemas or server logic — altough upstream updates may break extensions.

Policies

Strapi policies are functions that execute specific logic on each request before it reaches the controller. Policies can be customized according to your needs.

Routes

Strapi routes handle requests to your content and are auto-generated for your content-types. Routes can be customized according to your needs.

Server API for plugins

Strapi's Server API for plugins allows a Strapi plugin to customize the back end part (i.e. the server) of your application.