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
I am trying to query another api from my module which is related by the user module via the email key for each user. Each user can have possibly one api entry belonging to him but it can also be null.
I guess Loader does not know anything about field being optional or not. Is there any way to control this behavior for when to generate error and when not to?
Other than try catch and ignore the manually, @SvenC56 ... did you find any workaround for this?
Hello,
I am trying to query another api from my module which is related by the user module via the
email
key for each user. Each user can have possibly one api entry belonging to him but it can also benull
.User Module:
user.entity
user.resolver
API Module:
api-user.loader.ts
The API ignores user it does not find. E.g. returns
[]
for a single entry if it can't find it.If I query for a user which the external API does not know I get this error by the data loader:
Since the field
api
in the resolver is nullable I would expect that I getnull
returned.Thank you.
The text was updated successfully, but these errors were encountered: