graphile-settings 6.21.9 → 6.23.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/README.md +50 -0
- package/package.json +27 -27
package/README.md
CHANGED
|
@@ -183,6 +183,56 @@ const { schema } = await makeSchema(preset);
|
|
|
183
183
|
const sdl = printSchema(schema);
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
+
## Opt-in Scoped Introspection
|
|
187
|
+
|
|
188
|
+
`ConstructivePreset` and `makePgService` retain PostGraphile's upstream
|
|
189
|
+
introspection behavior. Applications that explicitly opt into schema-scoped
|
|
190
|
+
introspection add the independently owned replacement preset and configure the
|
|
191
|
+
service by name in the Graphile gather options:
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
import { ScopedIntrospectionPreset } from 'graphile-scoped-introspection';
|
|
195
|
+
import { ConstructivePreset, makePgService } from 'graphile-settings';
|
|
196
|
+
|
|
197
|
+
const preset = {
|
|
198
|
+
extends: [ConstructivePreset, ScopedIntrospectionPreset],
|
|
199
|
+
gather: {
|
|
200
|
+
pgScopedIntrospection: {
|
|
201
|
+
main: true,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
pgServices: [
|
|
205
|
+
makePgService({
|
|
206
|
+
connectionString: 'postgres://user:pass@localhost/mydb',
|
|
207
|
+
schemas: ['app_public'],
|
|
208
|
+
}),
|
|
209
|
+
],
|
|
210
|
+
};
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Use an options object when a service needs a specific catalog policy or
|
|
214
|
+
extension capability:
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
const preset = {
|
|
218
|
+
extends: [ConstructivePreset, ScopedIntrospectionPreset],
|
|
219
|
+
gather: {
|
|
220
|
+
pgScopedIntrospection: {
|
|
221
|
+
main: {
|
|
222
|
+
catalogTypes: 'dependency-closure',
|
|
223
|
+
capabilityExtensions: ['pg_trgm'],
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
The map is keyed by the final PostgreSQL service name. `true` enables scoped
|
|
231
|
+
defaults, `false` keeps stock introspection, and an omitted service keeps stock
|
|
232
|
+
introspection. The Constructive GraphQL server accepts the same gather options
|
|
233
|
+
under `graphile.preset.gather` and loads the scoped package only when the map is
|
|
234
|
+
configured, unless the replacement preset is already included in `graphile.extends`.
|
|
235
|
+
|
|
186
236
|
## Smart Tags Reference
|
|
187
237
|
|
|
188
238
|
Control schema generation with PostgreSQL comments:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.23.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -30,46 +30,46 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/client-s3": "^3.1052.0",
|
|
33
|
-
"@constructive-io/bucket-provisioner": "^0.
|
|
34
|
-
"@constructive-io/graphql-env": "^3.
|
|
35
|
-
"@constructive-io/graphql-types": "^3.
|
|
36
|
-
"@constructive-io/s3-streamer": "^2.
|
|
37
|
-
"@constructive-io/s3-utils": "^2.
|
|
38
|
-
"@constructive-io/upload-names": "^2.
|
|
33
|
+
"@constructive-io/bucket-provisioner": "^0.29.0",
|
|
34
|
+
"@constructive-io/graphql-env": "^3.34.0",
|
|
35
|
+
"@constructive-io/graphql-types": "^3.33.0",
|
|
36
|
+
"@constructive-io/s3-streamer": "^2.44.0",
|
|
37
|
+
"@constructive-io/s3-utils": "^2.34.0",
|
|
38
|
+
"@constructive-io/upload-names": "^2.31.0",
|
|
39
39
|
"@dataplan/json": "1.0.1",
|
|
40
40
|
"@dataplan/pg": "1.1.1",
|
|
41
41
|
"@graphile-contrib/pg-many-to-many": "2.0.0-rc.2",
|
|
42
|
-
"@pgpmjs/logger": "^2.
|
|
43
|
-
"@pgpmjs/types": "^2.
|
|
42
|
+
"@pgpmjs/logger": "^2.26.0",
|
|
43
|
+
"@pgpmjs/types": "^2.55.0",
|
|
44
44
|
"@pgsql/quotes": "^18.2.4",
|
|
45
45
|
"cors": "^2.8.6",
|
|
46
46
|
"express": "^5.2.1",
|
|
47
47
|
"grafast": "1.1.2",
|
|
48
48
|
"grafserv": "1.0.1",
|
|
49
|
-
"graphile-bucket-provisioner-plugin": "1.
|
|
49
|
+
"graphile-bucket-provisioner-plugin": "1.16.0",
|
|
50
50
|
"graphile-build": "5.1.1",
|
|
51
51
|
"graphile-build-pg": "5.1.3",
|
|
52
|
-
"graphile-bulk-mutations": "^1.
|
|
52
|
+
"graphile-bulk-mutations": "^1.16.0",
|
|
53
53
|
"graphile-config": "1.1.0",
|
|
54
|
-
"graphile-connection-filter": "^2.
|
|
55
|
-
"graphile-history": "^1.
|
|
56
|
-
"graphile-i18n": "^2.
|
|
57
|
-
"graphile-llm": "^1.
|
|
58
|
-
"graphile-ltree": "^2.
|
|
59
|
-
"graphile-meta": "^1.
|
|
60
|
-
"graphile-pg-aggregates": "^2.
|
|
61
|
-
"graphile-postgis": "^3.
|
|
62
|
-
"graphile-presigned-url-plugin": "^1.
|
|
63
|
-
"graphile-realtime-subscriptions": "^1.
|
|
64
|
-
"graphile-search": "^2.
|
|
65
|
-
"graphile-upload-plugin": "^2.
|
|
54
|
+
"graphile-connection-filter": "^2.16.0",
|
|
55
|
+
"graphile-history": "^1.8.0",
|
|
56
|
+
"graphile-i18n": "^2.17.0",
|
|
57
|
+
"graphile-llm": "^1.17.0",
|
|
58
|
+
"graphile-ltree": "^2.16.0",
|
|
59
|
+
"graphile-meta": "^1.10.0",
|
|
60
|
+
"graphile-pg-aggregates": "^2.16.0",
|
|
61
|
+
"graphile-postgis": "^3.17.0",
|
|
62
|
+
"graphile-presigned-url-plugin": "^1.20.0",
|
|
63
|
+
"graphile-realtime-subscriptions": "^1.12.0",
|
|
64
|
+
"graphile-search": "^2.16.0",
|
|
65
|
+
"graphile-upload-plugin": "^2.27.0",
|
|
66
66
|
"graphile-utils": "5.0.3",
|
|
67
67
|
"graphql": "16.13.0",
|
|
68
68
|
"inflekt": "^0.8.1",
|
|
69
69
|
"lru-cache": "^11.2.7",
|
|
70
|
-
"mime-bytes": "^0.
|
|
70
|
+
"mime-bytes": "^0.33.0",
|
|
71
71
|
"pg": "^8.21.0",
|
|
72
|
-
"pg-query-context": "^2.
|
|
72
|
+
"pg-query-context": "^2.31.0",
|
|
73
73
|
"pg-sql2": "5.0.1",
|
|
74
74
|
"postgraphile": "5.1.4",
|
|
75
75
|
"request-ip": "^3.3.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/express": "^5.0.6",
|
|
81
81
|
"@types/pg": "^8.20.4",
|
|
82
82
|
"@types/request-ip": "^0.0.41",
|
|
83
|
-
"graphile-test": "^5.
|
|
83
|
+
"graphile-test": "^5.16.0",
|
|
84
84
|
"makage": "^0.8.0",
|
|
85
85
|
"nodemon": "^3.1.14",
|
|
86
86
|
"ts-node": "^10.9.2"
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"constructive",
|
|
93
93
|
"graphql"
|
|
94
94
|
],
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "baa84094b8541eb5000701b0060aa5b298032dc7"
|
|
96
96
|
}
|