Join Slack
Powered by
Hey there, I was browsing the prisma airbnb exampl...
# orm-help
w
weakky
06/13/2018, 9:40 AM
Hey there, I was browsing the prisma airbnb example yesterday, and found a lot of witchcraft on a few resolvers: (fragment resolvers):
https://github.com/prismagraphql/graphql-server-example/blob/master/src/resolvers/Home.ts#L6-L33
(transformed info object):
https://github.com/prismagraphql/graphql-server-example/blob/master/src/resolvers/Query.ts#L8-L31
Are these type of resolvers documented anywhere ? 🤔
👍 2
l
lucasbento
06/13/2018, 9:45 AM
Loved the use of
witchcraft
in this message
h
huv1k
06/13/2018, 9:59 AM
https://www.apollographql.com/docs/graphql-tools/schema-transforms#Other
huv1k
06/13/2018, 9:59 AM
And fragment is basic fragment 😄
w
weakky
06/13/2018, 10:03 AM
Doc says `WrapQuery()`: This is used to get a result nested inside other result. What’s the usecase in airbnb’s example ?
Open in Slack
Previous
Next