Guillotine 9.x - Headless GraphQL API

Contents

A GraphQL API generated from your Enonic content model

Introduction

Guillotine is an Enonic app that exposes content through a headless GraphQL API. It generates a typed schema from your content model, letting websites, apps and other clients request the content and fields they need.

Built-in queries provide access to content, references, images and rich text. Queries respect content permissions and support both published and draft content.

You can extend the generated API with custom types, fields and resolvers written in TypeScript, including data from external services.

To get started, install Guillotine, explore your schema in Query Playground, and send a query from your client.

For a hands-on introduction to Enonic and its GraphQL API, follow the Developer 101 tutorial.
Cutting Edge API

Documentation guide

What you will find in this documentation:

Setup

Install Guillotine and expose its API in your environment.

Query Playground

Explore your schema and try queries in Content Studio.

Usage

How to send queries and handle responses, with cURL and JavaScript examples.

Query examples

Reference examples for content queries, references and mixins, images and URLs, rich text and site context.

Extending

Customize the schema and add resolvers in TypeScript, and learn how Guillotine executes your extensions.

API reference

Look up built-in GraphQL fields, arguments and types.

Configuration

Configure Guillotine, including CORS and schema extension behavior.

Release notes

What’s new in Guillotine 9 and how to upgrade from Guillotine 8.


Contents

Contents