How to setup Craft CMS to work with the GraphQL

Oscar de la Hera Gomez
Two flowers that represent Craft CMS and GraphQL with the text 'Setup Craft CMS to work with GraphQL' beneath them.

A step by step tutorial on setting up Craft CMS to work with the GraphQL.

The following tutorial walks you through how to setup Craft CMS to work with the GraphQL. To do this, you must activate Craft Pro and generate a token. This token is responsible for giving access to your database and must be updated periodically when making schema updates.

Step One: Activate Craft Pro

A screenshot provided by craft demonstrating how to try Craft Pro for free.

The following step walks you through how to activate the Craft Pro trial and is based of the Craft CMS guide provided in the link below.

A | Upgrade Craft CMS

A screenshot demonstrating how to navigate to Craft Pro through the Craft Plugin Store, where Upgrade Craft CMS exists as an option.

Navigate to the Plugin Store using the side bar and select Upgrade Craft CMS.

B | Select try for free

A screenshot provided by craft demonstrating how to try Craft Pro for free.

In the page that appears, select Try for free.

Step Two: Enable GraphQL

A screenshot of the Craft CMS project with the general.php file open highlighting how we enabled GraphQL.

In your Craft CMS project, under the config folder, open the general.php file and enable the Graphql using the line below:

'enableGql' => true

Step Three: Create a Token

A screenshot of the Craft CMS GraphQL Tokens available for delasign.com.

Follow the tutorials linked below to create a schema and token to allow GraphQL calls to securely function with your system.

Any Questions ?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.

delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details