You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Los querys que se estarán ejecutando del lado de graphql necesitan una estructura base de la cual si lo vemos son muy genéricos por lo que seria recomendable crear un script que permite agilizar la estructuración de los querys.
Nota: Recordemos que estamos utilizando objection como ORM
Estructura de los querys.
// Comando que permite instertar un registroProfesor.query().insert(args.profesor)
// Comando que permite actualizar un registroProfesor.query().patchAndFetchById(args.profesorId,args.profesor)
// Comando que permite borrar un registroProfesor.query().findById(args.profesorId).then((profesor)=>{returnProfesor.query().deleteById(args.profesorId).then((filasBorradas)=>{if(filasBorradas>0)returnprofesorthrownewError(`El profesor con id ${args.profesorId} no se pudo eliminar`)})})
The text was updated successfully, but these errors were encountered:
Los querys que se estarán ejecutando del lado de graphql necesitan una estructura base de la cual si lo vemos son muy genéricos por lo que seria recomendable crear un script que permite agilizar la estructuración de los querys.
Estructura de los querys.
The text was updated successfully, but these errors were encountered: