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}" }
            }
}
feita há 10 meses263 visualizações
1 Resposta
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 há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas