Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs as define __resolveType function in resolvers with a certain Moleculer action #101

Open
khangca1tex opened this issue Nov 11, 2021 · 1 comment

Comments

@khangca1tex
Copy link

When I add an action in __resolveType of a union in resolvers ( example below):

Character: {
__resolveType: {
action: 'character.resolve',
},
Then I executed the query, And got the error: " "Cannot read property 'call' of undefined"
Is there a way to solve the problem ? Thanks everyone

@khangca1tex khangca1tex changed the title An error occurs as define __resolveType function in resolvers with a certain action An error occurs as define __resolveType function in resolvers with a certain Moleculer action Nov 11, 2021
@pabloid64
Copy link

I also suffered from this problem. Adding the __typename field by condition solved the problem.
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants