Created
April 13, 2020 09:49
-
-
Save florian25686/0e52f98c133ffb17e1a7fb9745c83d54 to your computer and use it in GitHub Desktop.
Pimcore Datahub Graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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