• Getting Started
  • Lessons
  • Developer Guides
    • Model and Databases
    • Templates and Views
    • Controllers
    • Forms
    • Configuration
    • Extending Silverstripe CMS
    • Testing
    • Debugging
    • Performance
    • Security
    • Email
    • Integration and Web Services
    • Search
    • i18n
    • Files
    • Customising the Admin Interface
    • Execution pipeline
    • Command Line Interface
    • Cookies and Sessions
    • Graphql
      • Getting started
        • Activating the default server
        • Configuring your schema
        • Building the schema
        • Building a schema with procedural code
        • Deploying the schema
      • Working with DataObject models
      • Working with generic types
      • Security & best practices
      • Plugins
      • Extending the schema
      • Tips & Tricks
      • Architecture Diagrams
    • Deprecating code
  • Optional features
  • Upgrading
  • Changelogs
  • Contributing
  • Project Governance
  1. Developer Guides
  2. Graphql
  3. Getting started
Version 5Supported

This version of Silverstripe CMS is still supported though will not receive any additional features.

Go to documentation for the most recent stable version

Getting started#

This section of the documentation will give you an overview of how to get a simple GraphQL API up and running with some DataObject content.

Activating the default server

Open up the default server that comes pre-configured with the module

Configuring your schema

Add a basic type to the schema configuration

Building the schema

Turn your schema configuration into executable code

Building a schema with procedural code

Use PHP code to build your schema

Deploying the schema

Deploy your GraphQL schema to a test or production environment

Edit on GitHub