@suss/packs 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graphql-ruby.js +18 -2
- package/package.json +10 -10
package/dist/graphql-ruby.js
CHANGED
|
@@ -95,14 +95,30 @@ function graphqlRubyFramework(options) {
|
|
|
95
95
|
return {
|
|
96
96
|
name: "graphql-ruby",
|
|
97
97
|
protocol: "http-graphql",
|
|
98
|
-
discovery: [pattern]
|
|
98
|
+
discovery: [pattern],
|
|
99
|
+
// A resolver that reads a model through the dataloader passes the model
|
|
100
|
+
// as an argument, so the read is recorded against that model when a
|
|
101
|
+
// storage pack in the same run says it is one.
|
|
102
|
+
loaders: [
|
|
103
|
+
{
|
|
104
|
+
loader: "dataloader",
|
|
105
|
+
pick: "with",
|
|
106
|
+
reads: ["load", "load_all", "request", "request_all"],
|
|
107
|
+
shortcuts: [
|
|
108
|
+
"dataload",
|
|
109
|
+
"dataload_all",
|
|
110
|
+
"dataload_record",
|
|
111
|
+
"dataload_all_records"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
99
115
|
};
|
|
100
116
|
}
|
|
101
117
|
var declares = {
|
|
102
118
|
kind: "framework",
|
|
103
119
|
package: "@suss/framework-graphql-ruby",
|
|
104
120
|
dependencies: [{ ecosystem: "rubygems", name: "graphql" }],
|
|
105
|
-
reads: "graphql-ruby class-based field DSL (Ruby), including `mutation:` / `resolver:` wiring one hop out to what the referenced class itself declares.",
|
|
121
|
+
reads: "graphql-ruby class-based field DSL (Ruby), including `mutation:` / `resolver:` wiring one hop out to what the referenced class itself declares, and the model a resolver reads through `dataloader` when a storage pack in the run recognizes it.",
|
|
106
122
|
configuration: {
|
|
107
123
|
file: "suss.graphql-ruby.json",
|
|
108
124
|
example: { root: "app/graphql" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/packs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Every pack suss ships in one install, so it can read Express, Hono, NestJS, FastAPI, Rails, Prisma, OpenAPI and the rest.",
|
|
6
6
|
"keywords": [
|
|
@@ -214,15 +214,15 @@
|
|
|
214
214
|
"ts-morph": "^23.0.0"
|
|
215
215
|
},
|
|
216
216
|
"dependencies": {
|
|
217
|
-
"@suss/adapter-python": "0.
|
|
218
|
-
"@suss/adapter-ruby": "0.
|
|
219
|
-
"@suss/adapter-typescript": "0.
|
|
220
|
-
"@suss/behavioral-ir": "0.
|
|
221
|
-
"@suss/contract-graphql": "0.
|
|
222
|
-
"@suss/extractor": "0.
|
|
223
|
-
"@suss/manifest-aws": "0.
|
|
224
|
-
"@suss/recognize": "0.
|
|
225
|
-
"@suss/sql": "0.
|
|
217
|
+
"@suss/adapter-python": "0.26.0",
|
|
218
|
+
"@suss/adapter-ruby": "0.26.0",
|
|
219
|
+
"@suss/adapter-typescript": "0.26.0",
|
|
220
|
+
"@suss/behavioral-ir": "0.26.0",
|
|
221
|
+
"@suss/contract-graphql": "0.26.0",
|
|
222
|
+
"@suss/extractor": "0.26.0",
|
|
223
|
+
"@suss/manifest-aws": "0.26.0",
|
|
224
|
+
"@suss/recognize": "0.26.0",
|
|
225
|
+
"@suss/sql": "0.26.0",
|
|
226
226
|
"zod": "^4.0.0"
|
|
227
227
|
},
|
|
228
228
|
"devDependencies": {
|