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
[ | |
{ | |
"id":"001", | |
"name":"Bulbasaur", | |
"species":"Seed Pokémon", | |
"type":[ | |
"Grass", | |
"Poison" | |
], | |
"height":"2′4″ (0.71m)", |
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
body | |
{ | |
background: #1e1f24; | |
color: #333; | |
text-align: center; | |
font-family: Arial; | |
font-size: 16px; | |
margin: 0; | |
padding: 0; | |
} |
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
{"version":1,"resource":"file:///Users/Jmendez/WorkingBox/repositorios/TelevisaDigital/nxtv-core/ui/nxtv-lasestrellas/layout/amp/Video.js","entries":[{"id":"4G4a.js","timestamp":1649434093738}]} |
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
{ | |
[nombre Entidad] { | |
// listado de campos a solicitar | |
[nombre de entidar con la que se tiene realción] { | |
// listado de campos a solicitar | |
} | |
} | |
} | |
// ejemplo de consulta consiguiendo data de una relación |
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
{ | |
[nombre Entidad] { | |
// listado de campos a solicitar | |
} | |
} | |
// ejemplo query base | |
{ | |
cursos { |
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
// punto de entrada especial que permite | |
// agregar, modificar y borrar contenido | |
type Mutation { | |
// Declaracuon del punto de entrada | |
agregarCurso { | |
// De claracion de los campos a modificar o agregar | |
descripcion: String | |
profesorId: String | |
} : Curso // identidad a la que se le agregaran los nuevos campos | |
} |
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
// Esta declaracion es epsecial ya que | |
// Dicta el unicio punto de entrada | |
Type Query { | |
// Dentro se colocan los puntos de entrada | |
// y se le asignan las entidades a las cuales | |
// puedes tener acceso | |
cursos: [Curso] | |
profesores: [Profesores] | |
// Tabien dentro de los puntos de entrada se le pueden | |
// mandar parametros para resolver querys es importante |
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
type Profesor { | |
name: String! | |
// Para este caso se indica que la lista no puedeser null | |
// al igual que el contenido por lo que si la lista | |
// algo como esto [null, "jorge", null] no seria valido. | |
cursos: [String!]! | |
} |
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
type Profesor { | |
name: String! | |
// Para este caso se indica que la lista no puedeser null | |
// pero si la lista recibe algo como esto [null, "jorge", null] | |
// seria valido. | |
cursos: [String]! | |
} |
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
type Profesor { | |
name: String! | |
cursos: [String] | |
} |