Pros and cons. What Relay does well, and what to expect.
Pros
- GraphQL framework fully optimized for React and declarative fragments.
- Compile-time pre-compilation for better performance.
- Automatic and very efficient cache with data synchronization.
- Optimistic mutations with automatic rollback on error.
- Type-safe with TypeScript and Flow type generation.
Cons
- Steep learning curve, complex concepts to master.
- Requires a compilation step (relay-compiler).
- Fewer educational resources than Apollo Client.
- Overkill for simple applications with few mutations.
