Commit 817146e
feat(graphql): Add subscriptions, input types, filtering, pagination, and DataLoader
- Add WebSocket support via graphql-ws for real-time subscriptions
- Implement strongly-typed Input Types for create/update mutations
- Add advanced filtering with StringFilter, IntFilter, BooleanFilter
- Implement Relay-style cursor pagination with Connection types
- Add DataLoader to prevent N+1 queries on relationships
- Support nested relationship queries (lookup/master_detail fields)
- Add subscription resolvers with filter support
- Implement PubSub system for real-time events
- Add OrderBy support for sorting
- Update dependencies: graphql-ws, ws, graphql-subscriptions, dataloader, express, cors
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent e6d143a commit 817146e
2 files changed
Lines changed: 676 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
0 commit comments