I see in the documentation (https://neo4j.com/docs/graphql-manual/current/auth/authorization/allow/), you can use auth with allow across relationship.
However, I want to add read and edit properties on the relationship.
For example:
type User {
id: ID! @id(autogenerate: true)
authId: String! @unique
objects: [Object!]!
@relationship(type: "ACCESS", direction: OUT, properties: "Access")
}
type Object {
id: ID! @id(autogenerate: true)
users: [User!]!
@relationship(type: "ACCESS", direction: IN, properties: "Access")
}
interface Access @relationshipProperties {
edit: Boolean!
}
How do I setup my auth rules on object so that read operations is allowed for [:ACCESS] and edit operations is allowed for [:ACCESS {edit: true}].
Given the current documentation, it seems I need to create two relationships [:EDIT] and [:READ] for things to work, but that will complicate all my queries when dealing with user's objects.