AWS AppSync Mutation not Updating Data - What Could be the Issue?

0

I'm using AWS AppSync to query and create data but now I need to update the objects. I'm using the update mutation created by AppSync but it is returning the data without updating. Could you please look into it? It's important!

mutation MyMutation($id: ID = "2023439223", $currency: String = "", $assignedTo: String = "", $amount: String = "") {
  updateZeeepyOrders(input: {amount: $amount, assignedTo: $assignedTo, currency: $currency, id: $id}) {
    id
    amount
    langFrom
  }
}

Here I'm getting the data without being modified-

{
  "data": {
    "updateZeeepyOrders": {
      "id": "2023439223",
      "amount": "0",
      "langFrom": "hindi"
    }
  }
}

Same thing I'm getting when tried on Postman. Could you please suggest what's wrong with this?

1 Respuesta
0

You'll need to provide the Appsync Schema and the used resolvers for the mutation for us to be able to help you... ;)

Maybe you are returning the wrong object? Is the data updated in the Database?

profile picture
respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas