AEB-labs / graphql-weaver

A tool to combine, link and transform GraphQL schemas
MIT License
240 stars 20 forks source link

LaunchPad graphql endpoints no longer available #38

Open mstuart opened 6 years ago

mstuart commented 6 years ago

Can you please refresh the graphql endpoint examples and namespacing examples on launchpad?

Yogu commented 6 years ago

The dependency resolution in Apollo Launchpad is kind of non-deterministic. I just logged into the launchpad and it worked, then saved and it did not work again.

It seems as this is a bug in Apollo Launchpad. The graphql package is installed twice (once in the root, and once at launchpad-module/node_modules), although both point to the same version. The root cause could be that launchpad-module declares a regular dependency to graphql instead of a peerDependency, and sometimes the other packages (graphql-weaver, graphql-tools) are installed too late so that graphql is already installed within launchpad-module and gets installed a second time in the root package. I don't know why this is not a problem with graphql-tools on its own.