Skip to content

Yoga v1 migration guidance #1362

Answered by ardatan
ghoshrahul asked this question in Q&A
Jul 7, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

In version 1, we could pass an options flag, for our server.start(options) , where options contained a few parameters like port, endpoint, bodyParserOptions. The guide does not cover the same in v2. Please point me to the exact docs for the same.

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.

In version 1, the yoga server had express app attached. I believe it is removed in version 2. Do I need to import express as a separate dependency for the same?

By default, Yoga doesn't need an extra framework. You can j…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ghoshrahul
Comment options

@ardatan
Comment options

@ghoshrahul
Comment options

@ardatan
Comment options

Answer selected by n1ru4l
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants