Using Amplify, GraphQL, AppSync, Cognito, DynamoDB
Having the following model:
type Post
@model
{
id: ID!
content: String!
author: String!
}
I want my rules to enable the following case:
- Only Admin users can create, update and delete Post
- Some Posts where only premium users allow to read
- Some Posts where all logged in users allow to read
- Some Posts where all users (also unauthenticated) allow to read
What is the best way to implement it using the mentioned tools?
Thanks