This plugin helps with using Stellate in front of a Strapi GraphQL API.
It automatically takes care of invalidating the cache when content is updated in Strapi, no matter the source of the update. (admin panel, GraphQL mutation, REST API, etc)
- Set up Stellate for your Strapi GraphQL API
- Install the Strapi plugin:
npm install strapi-plugin-stellate
- Add the plugin to
./config/plugins.js
and add your Stellate service's name and purging API token:
module.exports = {
stellate: {
config: {
serviceName: "...", // REQUIRED: Your Stellate service's name
purgingAPIToken: "...", // REQUIRED: Your Purging API token
soft: false, // OPTIONAL: Whether you want to use soft purging
},
},
};