Yoga v1 migration guidance #1362
-
I was using GraphQL Yoga version 1.18.3 and am planning to upgrade to v2 using the migration guide. I have a couple of doubts regarding a few things:-
Please let me know if any information is required. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can pass those parameters in
By default, Yoga doesn't need an extra framework. You can just start the standalone server without any extra dependencies. But if you have some Express middlewares etc, you should setup an extra Express app and plug Yoga into it like we describe in our docs;
You can access incoming request and outgoing response objects through the context. |
Beta Was this translation helpful? Give feedback.
-
Thank you @ardatan , I have done as you mentioned here and am happy to report that this part is working successfully. |
Beta Was this translation helpful? Give feedback.
You can pass those parameters in
createServer
's options.https://github.com/dotansimha/graphql-yoga/blob/master/packages/node/src/types.ts#L16
You're right it seems we don't have docs for those. I'll create an issue for that.
By default, Yoga doesn't need an extra framework. You can j…