Website Building

CraftQL

4min
getting started with craftql the craftql modules allow you to execute mutation query, simple query and graphql query against craft cms prerequisites craft cms https //craftcms com/ installed craftql https //github com/markhuot/craftql plugin installed in order to use craftql with make, it is necessary to have a craftql plugin installed in your craftcms connecting craftql to make to connect your craftql plugin to make create your token in the craftql settings and insert the token into the make craftql module's create a connection dialog usage execute any graphql query against craftql useful for getting out content example query query getorders { entries(type \[order], orderstatus confirmed) { id, on order { delivery address { name line1 line2 city zip }, datecreated status products { on products line { qty pl qty, price pl price, product pl product rel { on product { id title sku } } } } total totalqty } } } mutate executes a mutation query insert parameters using the json > create json module