docs icon indicating copy to clipboard operation
docs copied to clipboard

How to ensure a field in a type is unique on recent amplify version

Open ggorge-etiqa opened this issue 1 year ago • 3 comments

Amplify CLI Version

12.3.0

Question

I'm trying to define a unique field in my model. I've tried this guide: https://dev.to/callmekatootie/aws-appsync-with-amplify-how-to-ensure-a-field-in-a-type-is-unique-51hp but it refers to the outdated/legacy/(deprecated ?) version of the documentation.

It's not clear to me how to achieve the same on using the new resolver logic (This: https://docs.amplify.aws/cli/graphql/custom-business-logic/#lambda-function-resolver ).

Can anyone provide a step-by-step example?

ggorge-etiqa avatar Sep 06 '23 07:09 ggorge-etiqa