What happens if I set ownerField to email(the email of the user) in GrahQL API Amplify Data model?

Viewed 6

What happens if I set ownerField to email(the email of the user) in GrahQL API Amplify Data model? How can I see what happens in dynamoDB or where should I check?

type Todo @model @auth(rules: [{ allow: owner, ownerField: "email" }]) {
  content: String                             #^^^^^^^^^^^^^^^^^^^^
  email: String # record owner information now stored in "email" field
}
0 Answers
Related