Estoy tratando de crear datos en Appsync con reaccionar nativo usando
await API.graphql(graphqlOperation(createBotdata, {input: dataEntry})) Pero me sale este error : error creating dataEntry: {"data": null, "errors": [{"locations": [Array], "message": "Validation error of type UnknownType: Unknown type CreateBotdataInput", "path": null}, {"locations": [Array], "message": "Validation error of type UnknownType: Unknown type ModelBotdataConditionInput", "path": null}, {"locations": [Array], "message": "Validation error of type FieldUndefined: Field 'createBotdata' in type 'Mutation' is undefined @ 'createBotdata'", "path": null}]}
Puedo confirmar que lo tengo todo, CreateBotdataInput , ModelBotdataConditionInput y createBotdata en mutación.js mutación.js-captura de pantalla
También puedo confirmar que el tipo de variable también está alineado. schema.graphql-captura de pantalla
dataENtry: {"client_id": "yo7634", "id": "yo7634", "lock_status": 3, "timestamp": ""}Finalmente, también importo mutaciones.js en el archivo.
import { createBotdata } from '../src/graphql/mutations'Este error me está volviendo loco, así que estaría agradecido si puedo obtener un puntero para solucionarlo 🙏