Skip to content

Instantly share code, notes, and snippets.

@danahartweg
Created June 26, 2021 17:21
Show Gist options
  • Save danahartweg/35d8ffbe63834d3c35e3a72d0f116f60 to your computer and use it in GitHub Desktop.
Save danahartweg/35d8ffbe63834d3c35e3a72d0f116f60 to your computer and use it in GitHub Desktop.
Fauna ABAC - Proposed schema
type User {
name: String
email: String!
organizations: [Organization!] @relation
}
type Organization {
name: String!
description: String
items: [Item!] @relation
members: [User!]! @relation
}
type Item {
name: String!
isPublic: Boolean
createdBy: User!
origin: Organization!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment