-
-
Save arcanoix/516e62ad9d020b10e0cc439f7858aeca 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