can-connect icon indicating copy to clipboard operation
can-connect copied to clipboard

Support Other Frameworks

Open justinbmeyer opened this issue 10 years ago • 6 comments
trafficstars

It would be nice to have examples of can-connect supporting other frameworks. Backbone seems like the obvious primary candidate.

The big integration point is bindings.

justinbmeyer avatar Oct 28 '15 05:10 justinbmeyer

or perhaps graphql, with apollo being like the only client. https://forums.donejs.com/t/apollo-graphql-integration/896

janat08 avatar May 31 '18 20:05 janat08

@janat08 can you share some details of what this integration might look like? How could one map the CRUD / REST of can-connect to graphql?

justinbmeyer avatar Jun 02 '18 00:06 justinbmeyer

https://github.com/apollographql/apollo-codegen/blob/master/README.md I believe this responsible for the graph crud abstraction.

janat08 avatar Jun 02 '18 08:06 janat08

I dont know what connect does now for lack of experience with rest services. But the idea with graph is that theres just one endpoint, and the commands there are parsed dynamically.

janat08 avatar Jun 02 '18 08:06 janat08

It might be case that it would be easier to use apollo and integrate with view.

janat08 avatar Jun 02 '18 08:06 janat08

@justinbmeyer integration of apollo client is the same as with feathers its simply a framework for browser and node the server side accepts on a single endpoint queryParms in a custom formart that the apollo client creates like the feathers client does it at present.

I know that because i have done a Project with Apollo but its not generic enought as i needed to add a lot of extra stuff but the base was the feathersjs example.

extra stuff i needed to add was List and Data Managment so i used the Apollo Client Directly and Updated my Instances with manual code event based i will publish a simple generic example to https://github.com/stealify/connect-apollo

frank-dspeed avatar Oct 31 '18 07:10 frank-dspeed