@Logged and @Right variants with constant schema
Closed this issue · 1 comments
moufmouf commented
When using @Logged or @right annotations, if the user is not logged or has no right, the field is NOT part of the schema.
That can be a problem for endpoints like a "me" query that could return the user OR null.
The "me" query could be annotated with a @Logged query having some additional fields.
Like:
@Logged(failWith=null)
@Right(name="CAN_FOO", failWith="disallowed")