exograph icon indicating copy to clipboard operation
exograph copied to clipboard

Provide finer access control rules

Open ramnivas opened this issue 1 year ago • 0 comments

Currently, we support access rules for query, create, update, and delete. However, they apply to both forms of APIs: single and bulk. We could offer a more fine-grained control. Along with #685, this could help reduce the exposed APIs.

An example:

@access(query=true) // current
@access(query={single=true, bulk=false, aggregate=false}

Given the new format, we could also rearrange to make the current access control override hierarchy explicit (here, update overrides mutation):

@access(mutation=..., update=...)

to

@access(mutation={default:..., update: ...}

ramnivas avatar Mar 28 '23 18:03 ramnivas