Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Tengo un proyecto del lado del cliente React y una API Node.js/GraphQL en dos repositorios separados

En mi aplicación React, quiero pasar un objeto como tipo variable a mi mutación. Así es como se ve mi mutación:

 export const PAR_CREATE = gql` input Resources { resourceName: String quantity: String sequenceNo: String } mutation createPAR( $resourceType: String $title: String $description: String $dropOfName: String $dropOfAddress: String $endDate: String $studentsImpacted: String $schoolId: String $resources: [Resources] ) { createPAR( resourceType: $resourceType title: $title description: $description dropOfName: $dropOfName dropOfAddress: $dropOfAddress endDate: $endDate studentsImpacted: $studentsImpacted schoolId: $schoolId resources: $resources ) { id } } `;

En mi proyecto Node.js tengo el siguiente esquema:

 type Mutation { createPAR( resourceType: String title: String description: String dropOfName: String dropOfAddress: String endDate: String studentsImpacted: String schoolId: String resources: [Resources] ): parResponse } input Resources { resourceName: String quantity: String sequenceNo: String }

Recibo este problema "Violación invariable: las definiciones de tipo de esquema no se permiten en las consultas. Encontrado: "InputObjectTypeDefinition"

Alguien puede ayudar

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!