Austin
My feedback
3 results found
-
8 votes
Austin supported this idea ·
An error occurred while saving the comment -
55 votes
Austin supported this idea ·
-
39 votes
Austin supported this idea ·
+1 to @Toshi example for AWS Amplify. Coming from that and using Realm it seems like a very fragmented experience.
In Amplify, its so nice because you can define all your models in GraphQL and then it autogenerates resolvers/etc for you.
```
type Hero
@model
@auth(
rules: [
{
allow: owner
provider: oidc
ownerField: "owner"
identityClaim: "uid"
operations: [read, create, update, delete]
}
{
allow: groups
provider: oidc
groupsField: "group"
groupClaim: "groups"
operations: [read, create, update, delete]
}
]
) {
id: ID!
name: String
owner: ID
group: ID
age: String
}
```
On top of that you can define your permissions using GraphQL directives. The really sad thing about AWS Amplify is it uses DynamoDB which is awful to put it nicely.