RisingStack / graffiti

⚠️ DEVELOPMENT DISCONTINUED - Node.js GraphQL ORM
https://risingstack-graffiti.signup.team/
MIT License
1.01k stars 44 forks source link

Custom rootValue and context parameters for graphql #31

Closed imshenyz closed 8 years ago

imshenyz commented 8 years ago

HI, i saw this lib pass the same request object in graphql function at the 3rd and 4th parameters which are rootValue and context. Why not make it customizable so we can pass the rootValue and context parameters for graphql.

tothandras commented 8 years ago

Hi @shenyzore, sorry for the delay, I am really short on time recently. I've added the possibility to pass in a custom context object (see readme). Would you like me to add support for function too? What parameters should it get (eg. request)?

tothandras commented 8 years ago

Take a look at version 3.1.1.

imshenyz commented 8 years ago

Thanks for your reply, i think it works for me.