Last active
October 9, 2017 11:15
-
-
Save javierfernandes/ad076e2d1a640d2f7712fa063b01cd4e to your computer and use it in GitHub Desktop.
Sample GraphQL Schema for testing subscriptions Mmedium article
This file contains hidden or 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
| type Object { | |
| project: String | |
| id: Int! | |
| properties: JSON // kind of a mixed type | |
| } | |
| Mutation: { | |
| updateObject(input: UpdateObjectInput) : Object | |
| } | |
| input UpdateObjectInput { | |
| project: String! | |
| id: Int! | |
| property: String! | |
| value: String! | |
| } | |
| Subscription: { | |
| objectUpdated(project: String!): ObjectPropertyChanged | |
| } | |
| type ObjectPropertyChanged { | |
| project: String! | |
| id: Int! | |
| property: String! | |
| value: String! | |
| } |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment