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
The problem is that the first @key directive is functional. The second one is completely ignored (it took me longer than I would like to admit to figure out why this wasn't working 🤦♂️). This means that when the "Entity service" returns a reference to a User, it must provide an id. But the idea for this setup is to let the "User service" figure out how to resolve the User based on the "entityRef".
I'm fairly certain I can work around this for now - simply because my current implementation of generating the "entityRef" involves serialising the ID anyway. But this, I imagine, would be a nice to have for others that don't have that option.
The text was updated successfully, but these errors were encountered:
I'm going to have a go - but I'll be honest, I'm not entirely sure where to start. It also appears that my workaround won't... well... work. So attempting to add multiple @key directives is probably my best bet at this time.
It would be great to have support for multiple
@key
directives.For reference, I'm trying to get something like the following working...
Entity service
User service
The problem is that the first
@key
directive is functional. The second one is completely ignored (it took me longer than I would like to admit to figure out why this wasn't working 🤦♂️). This means that when the "Entity service" returns a reference to aUser
, it must provide anid
. But the idea for this setup is to let the "User service" figure out how to resolve theUser
based on the "entityRef".I'm fairly certain I can work around this for now - simply because my current implementation of generating the "entityRef" involves serialising the ID anyway. But this, I imagine, would be a nice to have for others that don't have that option.
The text was updated successfully, but these errors were encountered: