Introduction to Strapql
Hello there, welcome to Strapi GraphQL API documentation!
Strapql is a documentation of queries and mutations that can be used within a Strapi app. This contains some of queries and mutations that hopefully helps you if you are using GraphQL API in your Strapi project :)
#
๐ Queries and Mutations- Queries are used to read or fetch values (
READ
/RETRIEVE
). - Mutations modify data in the data store and returns a value. It can be used to insert, update, or delete data (
CREATE
,UPDATE
, andDELETE
).
(Source : TutorialsPoint)
#
๐ PrerequisitesBefore jumping into the docs, please make sure you have created a Strapi app :
or
The commands above will create a Strapi app named my-strapi-app
. Feel free to replace that with your project name or anything you want.
Then please install the GraphQL plugin in your Strapi app.
or
Having installed the GraphQL plugin, you can verify the installation by visiting http://localhost:1337/graphql, assuming that your Strapi app is running.
You should see a GraphQL Playground in which you can test GraphQL queries and mutations !