Is it possible to write a resolver that uses one o...
# orm-help
s
Is it possible to write a resolver that uses one of my defined types? Something with multiple attributes, not just a scalar value. Or would it be better just to use JSON.stringify as a String parameter and parse it on my server?
n
yes, that's possible and super common.
I don't understand your question about JSON.stringify.
browsing https://github.com/prismagraphql/graphql-server-example/ you can find resolvers for types that have fields with defined types
šŸ‘ 1
s
This is an awesome example. I’m sure it is in the documentation and I just missed it. šŸ˜… I was just talking about turning a JavaScript object into JSON before sending it as a String argument. I like your way better!
🦜 1