Silverstripe
Silverstripe CMSDocs
  • 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
  • Upgrading
  • Changelogs
  • Contributing
  • Project Governance
  1. Developer Guides/
  2. Graphql/
  3. Getting started
Version 4End of Life

This version of Silverstripe CMS will not receive any additional bug fixes or documentation updates.

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.

NOTE

You are viewing docs for silverstripe/graphql 4.x. If you are using 3.x, documentation can be found in the GitHub repository

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