apollo-cache-persist
graphql-shield
apollo-cache-persist | graphql-shield | |
---|---|---|
3 | 6 | |
1,363 | 3,512 | |
0.1% | - | |
6.4 | 3.7 | |
5 days ago | 8 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
apollo-cache-persist
-
GraphQL making its way into a Twitter discussion about latency is not what I expected
Apollo client comes with an in-memory cache which can be persisted to various storage providers with an additional official library. Obviously not as easy as relying on browser caching, but there are lots of options available. I often find myself having to disable client-side response caching anyway, as most of the data for the sites I work on needs to be as up-to-date as possible.
-
Offline usage with Apollo Client?
Yes they have but using key value storage https://github.com/apollographql/apollo-cache-persist, for better performance use mmkv instead of async storage
-
Apollo Client || Add to cart an item on the client side
I did find https://github.com/apollographql/apollo-cache-persist however, but I've never used it so can't tell you much about it.
graphql-shield
-
How can GraphQL Shield play nicely with Type Based Error Handling?
- https://github.com/dimatill/graphql-shield/issues/988 - https://github.com/dimatill/graphql-shield/issues/1485
-
HaloAPI.dev - Open-source GraphQL API for Infinite
Second a NextJS app is deployed to Vercel containing a GraphQL server function. This is an Apollo server that consumes the halo-graphql package using GraphQL Modules. The server also implements caching and rate limiting using GraphQL Shield.
-
GraphQL AuthZ - GraphQL Authorization layer
GraphQL Shield is a great tool for creating authorization layers that has vast adoption from the community. In fact, GraphQL AuthZ is highly inspired by GraphQL Shield! However, GraphQL Shield uses a different approach compared to GraphQL AuthZ for applying authorization rules.
-
Manage complex permissions/access rights
Haven't used it yet but GraphQL Shield looks pretty good. https://github.com/maticzav/graphql-shield
-
GraphQL - Diving Deep
You can also use libraries like GraphQL Shield which offers powerful middlewares to do this. But remember that authorization does come with attached cost since you are running a specific logic in/before your resolvers for all the fields which you want to authorize.
-
How to implement security for fields ?
Try graphql-shield
What are some alternatives?
destreamer - Save Microsoft Stream videos for offline enjoyment.
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
offix - GraphQL Offline Client and Server
apollo-server - 🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
redwood - The App Framework for Startups
Neo4j - Graphs for Everyone
express-graphql - Create a GraphQL HTTP server with Express.
graphql-spec - GraphQL is a query language and execution engine tied to any backend service.
graphql-js - A reference implementation of GraphQL for JavaScript
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
dgraph - The high-performance database for modern applications
frank_jwt - JSON Web Token implementation in Rust.