You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example below, Project has a relation to ProjectComment for the field comments. Because comments is decorated with QueryPermissions the schema-builder generates the SDL for the subquery for ProjectComment naming the ProjectCommentFilter as type for the optional where parameter of the subquery. Since ProjectComment does not have a decorator for QueryPermissions or MutationPermissions, it does not create the SDL type ProjectCommentFilter leading to the error, shown below.
Solution: Either withdraw the QueryPermissions from comments or give ProjectComment permissions.
one:b624d9:BootLoader:error 2019-08-07T17:34:34+0300 <error> index.js:80 (BootLoader.<anonymous>) BootLoader.boot.error.caught: Error: Type "ProjectCommentFilter" not found in document.
Expected behavior
To be discussed.
The text was updated successfully, but these errors were encountered:
davidsparkles
changed the title
Bug: Error when an Entity has no QueryPermission or MutationPermission
Bug: Type "XxxxxxxFilter" not found in document
Aug 8, 2019
Package
Describe the bug
In the example below,
Project
has a relation toProjectComment
for the fieldcomments
. Becausecomments
is decorated withQueryPermissions
theschema-builder
generates the SDL for the subquery forProjectComment
naming theProjectCommentFilter
as type for the optionalwhere
parameter of the subquery. SinceProjectComment
does not have a decorator forQueryPermissions
orMutationPermissions
, it does not create the SDL typeProjectCommentFilter
leading to the error, shown below.Solution: Either withdraw the
QueryPermissions
fromcomments
or giveProjectComment
permissions.To Reproduce
Expected behavior
To be discussed.
The text was updated successfully, but these errors were encountered: