Skip to content

Commit 817146e

Browse files
Copilothotlong
andcommitted
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

File tree

packages/protocols/graphql/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,20 @@
2020
"@objectql/types": "workspace:*",
2121
"@objectstack/spec": "^0.7.1",
2222
"@apollo/server": "^4.10.0",
23-
"graphql": "^16.8.1"
23+
"graphql": "^16.8.1",
24+
"graphql-ws": "^5.14.0",
25+
"ws": "^8.14.0",
26+
"graphql-subscriptions": "^2.0.0",
27+
"dataloader": "^2.2.2",
28+
"@graphql-tools/schema": "^10.0.2",
29+
"express": "^4.18.2",
30+
"cors": "^2.8.5"
2431
},
2532
"devDependencies": {
2633
"@objectstack/core": "^0.7.1",
34+
"@types/ws": "^8.5.10",
35+
"@types/express": "^4.17.21",
36+
"@types/cors": "^2.8.17",
2737
"typescript": "^5.3.3",
2838
"vitest": "^1.0.4"
2939
},

0 commit comments

Comments
 (0)