Skip to content

Instantly share code, notes, and snippets.

@florian25686
Created April 13, 2020 09:49
Show Gist options
  • Save florian25686/0e52f98c133ffb17e1a7fb9745c83d54 to your computer and use it in GitHub Desktop.
Save florian25686/0e52f98c133ffb17e1a7fb9745c83d54 to your computer and use it in GitHub Desktop.
Pimcore Datahub Graphql
### Get all Blog Articles
query {
getBlogArticleListing(published: true) {
edges {
node {
id
headline
blogContentShortend
}
}
totalCount
}
}
### Create new Blog Article
mutation {
createBlogArticle(
parentId: 7
key:"hello-world"
input: {
headline:"hello-world",
blogContent:"Write my content",
published: false
}
) {
success
message
output {
headline
blogContent
published
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment