moleculer-apollo-server
moleculer-apollo-server copied to clipboard
Upgdate to latest Apollo server / subscriptions
- upgrade to Apollo server v3 ( + switch from subscriptions-transport-ws to graphql-ws )
- add Custom PubSub creator ( for use custom PubSubEngine )
- add Update/Reload schema without restarting server/ws
- Playground ( RenderPageOptions ) options in serverOptions.playgroundOptions
- add serverOptions.subscriptions.onConnect should return acts lile graphql-ws
- add serverOptions.subscriptions.context should return user account ( like "authenticate" method )
- CAUTION: with new graphql-ws subscriptions are not available in build-in playground
- WARNING: graphql-upload disabled ( new versions is mjs type )
- Not tested - DataLoader
- Example in examples/full/
Hello! Thanks for your contribution. There are a few quick fixes but important ones:
- Look at the diff between the example files. There are a lot of changes that don't make sense for this PR.
- You cannot change the description and repository in
package.json
. - A lot of commented code. If it is not needed, remove it.
how soon this can be merged? Apollo server v2 is very outdated, and it needs to be in v3 atleast.
CI is failed
Judging by the CI error, dependency packages like graphql-subscriptions
and possibly others should be updated so that there is no conflict between new and old packages in peer dependencies.
How is this coming along? Is there anything I can do to help?
How is this coming along? Is there anything I can do to help?
Fixing broken tests would help a lot