Created
October 5, 2018 07:04
-
-
Save eljenso/b2b43f30cdc3e9aa765f10df99de67a3 to your computer and use it in GitHub Desktop.
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
interface IElement { | |
id: ID! | |
name: String! | |
parent: IElement | |
children(id: ID): [IElement!] | |
} | |
type Section implements IElement { | |
id: ID! | |
name: String! | |
parent: IElement | |
children(id: ID): [IElement!] | |
} | |
type Query { | |
element(id: String!): IElement | |
elements: [IElement] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment