This is a pretty simple feature request. Add a directive for controlling Anonymous Access settings so that you can encode in schema and source control instead of the UI being the source of truth / interface.
Example:
@anonymous({ read: true, write: false })
type MyCoolType {
someField: String!
}
type Mutation {
@anonymous({ read: true, write: true })
someMutation(...) { ... } @custom(...)
}
Hoping this is actually a fairly easy thing to do since it doesn’t fundamentally change the behavior of DGraph’s high level access control, it just exposes a directive-based interface for encoding it.
Thanks all!