bdunogier / ezplatform-graphql-bundle

GraphQL server for eZ Platform, the open source Symfony CMS.
13 stars 6 forks source link

Content mutations #70

Closed bdunogier closed 5 years ago

bdunogier commented 6 years ago

Adds support for creating, updating and deleting content over GraphQL.

For each content type:

Usage:

mutation CreateMyBlogPost
{
  createBlogPost(
    parentLocationId: 216,
    input: {
      title: "The post's title",
      author: [
        {name: "Bertrand Dunogier", email: "noemail@ez.no"}
      ],
      body: {
        format: html,
        input: "<h1>title</h1><p>paragraph</p>"
      }
    } 
  ) {
    _info { id mainLocationId }
    title
    body { html5 }
  }
}
bdunogier commented 5 years ago

Moved to https://github.com/ezsystems/ezplatform-graphql/pull/4.