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
      • Working with DataObject models
        • Adding DataObject models to the schema
        • DataObject query plugins
        • DataObject operation permissions
        • DataObject inheritance
        • Versioned content
        • Property mapping and dot syntax
        • Nested type definitions
      • 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. Working with DataObject models
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 →

Working with DataObject models#

In this section of the documentation, we'll cover adding DataObjects to the schema, exposing their fields, and adding read/write operations. We'll also look at some of the plugins that are available to DataObjects like sorting, filtering, and pagination, as well as some more advanced concepts like permissions, inheritance and property mapping.

NOTE

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

Adding DataObject models to the schema
An overview of how the DataObject model can influence the creation of types, queries, and mutations
DataObject query plugins
Learn about some of the useful goodies that come pre-packaged with DataObject queries
DataObject operation permissions
A look at how permissions work for DataObject queries and mutations
DataObject inheritance
Learn how inheritance is handled in DataObject model types
Versioned content
A guide on how DataObject models with the Versioned extension behave in GraphQL schemas
Property mapping and dot syntax
Learn how to customise field names, use dot syntax, and use aggregate functions
Nested type definitions
Define dependent types inline with a parent type

Edit on GitHub