Has anyone successfully implemented a custom resol...
# orm-help
a
Has anyone successfully implemented a custom resolver and is willing to share the code? Im having so much trouble. Every time i perform an async action within the resolver it returns null
m
Hi, @alec, I'd be happy to help. Can you expound a bit more about what you mean by a custom resolver (i.e., describe the functionality you are trying to implement)?
a
@medelman thank you! In the time since I wrote that I think I figured it out, so let me keep working and Ill get back to you if I have a questions I cant solve. I appreciate it!
Ok question- do u have an example of extending the mutation type?
My use case is this: I want to create a custom compliment object (compliment is a model in my schema) but first I have to create a picture object, return the id, and use that picture id to create the compliment
m
Have you tried doing this via nested mutation? Compliment is a relational field on Picture, correct?