1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
In order for your data to be accessible to all signed in user, do this
Signed-in user data access To restrict a record's access to every signed-in user, use the private authorization strategy.
If you want to restrict a record's access to a specific user, see Per-user / owner-based data access. private authorization applies the authorization rule to every signed-in user access.
type Todo @model @auth(rules: [{ allow: private }]) { content: String }
https://docs.amplify.aws/cli/graphql/authorization-rules/#signed-in-user-data-access
répondu il y a un an
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
I've tried changing the schema.graphl to
type Group @model @auth(rules: [ { allow: public, provider: apiKey } ]){ id: ID! members: [String!]! location: String time: String specialRequest: String }
and amplify update API to add a API authentication
but it still throws the same error