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}" }
            }
}
asked 10 months ago251 views
1 Answer
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.

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions