Appsync resolver context not working, used literal strings somehow

0

Been using this resolver fine, but after an update at some point, the userId has been the literal string "${ctx.identity.cognitoIdentityId}" instead of being replaced with actual Id. Now I'm not sure how to make it work.

{
            "version" : "2017-02-28",
            "operation" : "GetItem",
            "key": {
              "userId": { "S": "${ctx.identity.cognitoIdentityId}" }
            }
}
preguntada hace 10 meses263 visualizaciones
1 Respuesta
0

nevermind, as it is clearly stated here, https://docs.aws.amazon.com/appsync/latest/devguide/resolver-context-reference.html#aws-appsync-resolver-context-reference-identity , when you change the auth type the data structure changes.

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