question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove bundling from yoga?

See original GitHub issue

Currently, yoga supports schema bundling out of the box. This is nice, but it creates a lot of dependencies. And it feels a bit like Express running Webpack for you. It think there is a clear pattern emerging that you use graphql-cli and its config file to configure and run bundling on your schemas to process imports, and this task should no longer be included in yoga.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
DevanBcommented, Jan 15, 2018

If you are using graphql-yoga as a basic ‘out of the box’ graphql server, feeding it a schema and resolvers, you will not be needing schema imports, so to me, schema imports are not part of that ‘focus on easy setup’.

This is a broad statement and erroneous assumption of how an individual uses graphql-yoga. Schema imports can be applied at any size, not only large schemas.

As soon as you start working with bindings, you are probably going to need schema imports. Now, as soon as you start using bindings, you are going to use graphql-cli with a config file to configure that. graphql-cli contains that bundling functionality as well.

This isn’t true, also. You can use bindings without needing graphql-cli.

I think individual packages should focus on their core features, and try to include other things only when needed.

This is a great sentiment to have except that it falls short in the use-case of an opinionated, easy to use/setup solution, i.e. graphql-yoga.

I believe that @wtgtybhertgeghgtwtg has a good point in that the behavior you are asking to be removed is only dependent on one package, which is dependent on two packages.

I’m trying to minimize […] a release avalanche of new versions.

This is avoidable by not releasing a new version of graphql-yoga every single time one of it’s dependencies is updated.

tl;dr; - This whole ticket boils down to what we believe is the definition of a good ‘out of the box’ GraphQL server. In the end, graphql-yoga is an opinionated, minimal setup GraphQL server – not a GraphQL server with minimal features.

1reaction
wtgtybhertgeghgtwtgcommented, Jan 14, 2018

This is nice, but it creates a lot of dependencies.

graphql-import has two dependencies, graphql and lodash, neither of which are unique.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add yoga bundles and release-tool syncs - OpenDev
Add yoga bundles and release-tool syncs ... run focal-ussuri as smoke tests * remove groovy bundles Change-Id: Ie8a5fe3f3dd10de1b4f180ce05b542896f594393
Read more >
Basic Yoga Bundle at EverydayYoga.com
Basic Yoga Bundle Everything you need to deepen in your yoga postures WHAT IT IS YogaOutlet bestseller - A ... Care: Remove stains...
Read more >
Yoga Prop Basics Bundle - Charcoal - Halfmoon USA
The Yoga Prop Basics Bundle - Charcoal contains all the professional-grade ... Heatable for the ultimate relaxation (remove cotton cover while heating).
Read more >
9 Ground Rules of Product Bundling on Amazon | Zentail Blog
You cannot make them the primary products in your bundle, though they can act as secondary products. You can, for example, bundle a...
Read more >
Customer reviews: SANZ Sport Bundle, Remove Odors and ...
Gets out strong odors from workout wear. Gently cleans silk & cloth masks. Easy to use. One person found this helpful. Helpful.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found