3 ms·
Show HN: GraphQL lib for real-time apps
- zackify 8y agoWhat's the benefit of this, over using the websocket layer for Apollo?
- paws 8y agoWell, to answer you could take a look at their dependencies: https://github.com/tjmehta/primus-graphql/blob/master/package.json https://github.com/tjmehta/primus-graphql/blob/master/packag... https://github.com/prisma/graphql-yoga/blob/master/package.json https://github.com/prisma/graphql-yoga/blob/master/package.j...
- Etheryte 8y agoI don't see how this answers the question in a meaningful way.
- np_tedious 8y agoThat's primus and relay. Question was about Apollo
- np_tedious 8y agoSorry. Primus and prisma, not relay
- tjmehta 8y agoHello Zackify, author here. That’s a great question. I haven’t used Apollo in depth (since I started building this before it’s existance.) But Apollo is an opinionated GraphQL framework that includes the data-transport layer. Primus-GraphQL is less opinionated and just provides a GraphQL data-transport layer (client and server). Primus-GraphQL also offers a network-layer for Relay (an opinionated GraphQL client framework that works well with React). Since it is built on top of Primus it allows flexibility with data-protocol layer - from socket.io, socksjs, websockets, or even a custom implementation. Hope that answers your question. Let me know if you have more :-)
- chrisweekly 8y agoLooks awesome at first glance.
- fulafel 8y agoWhat are the real-time properties of this?
- beaconstudios 8y agoGraphql subscriptions, aka pubsub with marketing.