polymer-apollo icon indicating copy to clipboard operation
polymer-apollo copied to clipboard

Publish on https://webcomponents.org

Open FluorescentHallucinogen opened this issue 7 years ago • 9 comments

IMO, polymer-apollo should be a Polymer web component (or set of Polymer web components), i.e. HTML files.

FluorescentHallucinogen avatar Feb 24 '18 14:02 FluorescentHallucinogen

If I understand correctly, polymer-apollo is a mixin (what is called behavior in Polymer 1.x) that helps access apollo-client instance in other Polymer web components.

I mean that behaviors (for Polymer 1.x), or mixins (for Polymer 2.x and Polymer 3.x) can be declared in the web components (in HTML file for Polymer 1.x and Polymer 2.x and published to Bower or in JS file for Polymer 3.x and published to NPM). See e.g. https://webcomponents.org/search/behavior.

See also https://webcomponents.org/element/reach-digital/polymer-apollo-client. This is a collection of <graphql-client>, <graphql-mutation> and <graphql-query> Polymer web components. It is very easy and intuitive to use it, but I don't know how flexible this design for complex scenarios. BTW, polymer-apollo-client doesn't support subscriptions.

@aruntk What do you think?

FluorescentHallucinogen avatar Feb 24 '18 15:02 FluorescentHallucinogen

@paales @rjspotter What about to join efforts and work together on one single project? :wink:

FluorescentHallucinogen avatar Feb 24 '18 15:02 FluorescentHallucinogen

What about to join efforts and work together on one single project

@FluorescentHallucinogen Sure. :)

aruntk avatar Feb 25 '18 09:02 aruntk

@aruntk What about my suggestions?

FluorescentHallucinogen avatar Feb 25 '18 17:02 FluorescentHallucinogen

@FluorescentHallucinogen I'm happy to help out however I can. FWIW I chose to use polymer-apollo-client because the component model was easier to wrap my head around and integrate into a basic starter-kit (I'm primarily a Backend Dev)

rjspotter avatar Mar 08 '18 02:03 rjspotter

@FluorescentHallucinogen I've sent you a collaborator invitation. I'm a bit busy now-a-days. It'd be great if you could contribute. :)

aruntk avatar Mar 08 '18 10:03 aruntk

I've also found https://github.com/atoy40/kapton by @atoy40 and https://github.com/matteo-hertel/polymer-graphql by @matteo-hertel.

FluorescentHallucinogen avatar Jun 04 '18 10:06 FluorescentHallucinogen

Also https://www.npmjs.com/package/lit-apollo

paales avatar Jun 04 '18 11:06 paales

@paales lit-apollo is great project, but it does not provide web components per se, this is base classes which authors are meant to extend. See https://github.com/bennypowers/lit-apollo/issues/2 for more info.

FluorescentHallucinogen avatar Jun 05 '18 09:06 FluorescentHallucinogen