Implementing fields resolver alongside struct fields #1048
Labels
duplicate
This issue or pull request already exists
enhancement
Improvement of existing features or bugfix
Hi there!
I'm currently using Juniper for an API project and so far the experience has been pretty great!
But I'm currently facing a problem where I need to have a
struct
with a list of public fields, as well as a few methods that would act as resolvers for the struct itself. Now, the former can be achieved like this:While the latter can be done like this:
But how can I achieve both at the same time? Something like:
doesn't work as it results in a conflicting implementation of GraphQLObject.
The text was updated successfully, but these errors were encountered: