Amplify schema: How can I implement an authorization based on a @connected model’s field?
Background: This is similar to the model definition from the amplify documentation on the @auth directive: Instead, I’d like to do authorization based on a @connected model’s field, similar to the following: Solution: It seems a workaround by adding a join model (it is called DraftLink in my lab) to encode the relationship between Draft and editor. Step 1: Create…
Read More »