4 ms·
Are there good alternatives to Apollo at all?
by LeicaLatte 8y ago
Are there good alternatives to Apollo at all?
- andridk 8y agohttps://github.com/prisma/graphql-request https://github.com/prisma/graphql-request
- mxstbr 8y agoThere's lots of alternatives, but whether they are good or not depends on your use case: - Relay by Facebook, it's own GraphQL client: https://facebook.github.io/relay/ https://facebook.github.io/relay/ - Urql by FormidableLabs, an effort to build a simple React GraphQL client that covers the 80% use case: https://github.com/FormidableLabs/urql https://github.com/FormidableLabs/urql - GraphQL Request by Prisma, a minimal, universal GraphQL client: https://github.com/prisma/graphql-request https://github.com/prisma/graphql-request Plus a variety of smaller ones like Lokka (https://github.com/kadirahq/lokka https://github.com/kadirahq/lokka), FetchQL (https://github.com/gucheen/fetchql https://github.com/gucheen/fetchql) and micro-graphql-react (https://github.com/arackaf/micro-graphql-react https://github.com/arackaf/micro-graphql-react). It's all about the tradeoffs you want to make: if you're building a React app your can't go wrong with Relay or Urql, if you're writing one-off (universal) scripts graphql-request is probably your best choice, etc.
- cheapsteak 8y agoI made a chart of the download counts of the alternatives :D https://npmcharts.com/compare/react-apollo,react-relay,urql,graphql-request,lokka,fetchql,micro-graphql-react https://npmcharts.com/compare/react-apollo,react-relay,urql,...
- LeicaLatte 8y agoThanks for the recommendations. I write native iOS and Apollo code generation can be quite hit and miss.