Created
April 4, 2019 00:10
-
-
Save konami12/c34e38c9c2f04cbf59c42fc77445803c to your computer and use it in GitHub Desktop.
EejemploObjectGQL.gql
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
// al usar Type indica que esto es un objeto | |
type Curso { | |
// al usar el signo ! indica que | |
// el valor es obligatrio | |
id: ID! | |
descripcion: String | |
// la utilizar [] indica que es una lista | |
// los que nos indica que puedes tener 1 o mas | |
// profesores | |
profesores: [Profesor] | |
} | |
type Profesor { | |
id: ID! | |
nombre: String | |
edad: Int | |
tieneCurso: Boolean | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment