We are investigating how we could introduce GraphQL and we are now studying how to use GraphQL with our ACL system.
We basically have this model (as an example):
interface Foo {
title: string;
}
if you have, lets say, Editing Permissions, then your post model becomes:
interface Foo {
title: string;
bar: string;
foobar: string;
}
basically, your Foo
object is delivered with different fields accordingly with your permissions.
We have been doing some research and a couple of options came out (such as having different types per acl, etc.). But we are not sure what's the best way to do it is.