We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba025d commit c2b4d4cCopy full SHA for c2b4d4c
2 files changed
src/schemas/schema.js
@@ -15,6 +15,12 @@ const ROOT_QUERY = `
15
curso(id: Int): Curso
16
profesor(id: Int): Profesor
17
}
18
+
19
+ type Mutation {
20
+ profesorAdd(profesor: newProfesor): Profesor
21
+ profesorEdit(id: Int!, profesor: editProfesor): Profesor
22
+ profesorDelete(id: Int!): Profesor
23
+ }
24
`;
25
26
/**
src/schemas/schemas/Profesor.js
@@ -7,6 +7,18 @@ const PROFESORES_SCHEMA = `
7
genero: Genero
8
cursos: [Curso]
9
10
11
+ input newProfesor {
12
+ nombre: String!
13
+ nacionalidad: String!
14
+ genero: Genero
+ input editProfesor{
+ nombre: String
+ nacionalidad: String
const GENERO_SCHEMA = `
0 commit comments