Hey hello, i love graph.cool but i also love to wo...
# prisma-whats-new
s
Hey hello, i love graph.cool but i also love to work offline. Do you know a js client-side graphql library with api endpoints compliant to graph.cool, so i could switch from a local (client-side) or graph.cool data provider ? (and maybe have a replication logic between them)
n
@snolahc there's none available as far as I know 🙂 In general, "offline development" is a hot topic in the GraphQL community and best practices have yet to emerge.
s
Mmh okay, got it. i'll start by trying to practice offline apis 😛
j
If only you could bundle graph.cool as a docker container. a) might be technically impossible, depending on graph.cool stack. b) destroys graph.cool business model c) maybe bundle as secure container if this kind of technology exists?
s
making graph.cool available in a docker container would certainly not destroy the business model but be a huge enhancer of the APIfied graphql usage, which is really good for graph.cool i guess. But i don't want to have this huge stack. MeteorJS spawns a MongoDB server client-side in JS and has a good replication logic with the server-side mongodb
j
However there are simple ways to accomplish what you want. Introspect your schema. Use apollo client + custom network interface to respond to requests with data from local .json files.
n
s
that's the architecture and usercase i'd love to explore with graph.cool and graphql as a service 🙂
j
If graph.cool were to run in a docker container, I could simply throw it into any Cloud service that runs docker containers for me..
Backendless did something similar and it completely failed.
s
@jensneuse didn't know apollo. Mmmh :3 @nilan nice doc. Got a lot to read i guess
👍 1
n
Let us know if you find something out 🙂
s
of course 🙂 You made my life so easier :3
about the graph.cool in docker, i guess there are big steps to do before. You can't provide a docker container without it being opensource, and opening a project while keeping a good business model and staying the public/business/dev reference is a real work that needs to be handled carefully, to gather a community without being overcome by it and having your project going wild (so much success and failures examples...)
j
a) yes b) it’s not just putting the components together. The schema definition lives “somewhere” inside graph.cool. There would be the need for a spec on how to define a graphql backend environment. This is a lot of work for a team. It needs to be evaluated what the end user value of such solution is and how someone implementing a solution like this might benefit from it. Maybe chances might be better if all big graphql-aas companies work on this together. Maybe this idea doesn’t fit the company plan. Graph.cool’s pricing is aligned to gain a lot of market share and beat others like scaphold. So my best bet is, this docker idea is never gonna happen. One could build something on their own but it’s never going to be 100% graph.cool compliant I guess.
n
Thanks for sharing your thoughts @snolahc @jensneuse. We think there is a lot potential in this area with schema files - https://www.graph.cool/docs/faq/graphql-idl-schema-definition-language-kr84dktnp0/. This can become the unified format to kickstart development with local servers or when switching between providers. With https://www.graph.cool/graphql-up/ we explored this before, but there's more to come very soon 😉 🙊