@stonecrop/graphql-middleware 0.13.0 → 0.13.2
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 +0 -1
- package/dist/graphql-middleware.d.ts +7 -5
- package/dist/index.js +290 -274
- package/dist/index.js.map +1 -1
- package/dist/src/plugin/postgraphile.d.ts +7 -5
- package/dist/src/plugin/postgraphile.d.ts.map +1 -1
- package/dist/src/plugin/postgraphile.js +59 -24
- package/dist/src/typeDefs.d.ts.map +1 -1
- package/dist/src/typeDefs.js +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -255,16 +255,18 @@ export declare function registerHandler(name: string, handler: ActionHandler): v
|
|
|
255
255
|
* @public
|
|
256
256
|
*/
|
|
257
257
|
export declare interface StonecropPluginOptions {
|
|
258
|
-
/**
|
|
259
|
-
* Primary key column name used in all `stonecropRecord` lookups and linked-record fetches.
|
|
260
|
-
* Defaults to `'id'`.
|
|
261
|
-
*/
|
|
262
|
-
pkField?: string;
|
|
263
258
|
/**
|
|
264
259
|
* When `true`, SQL queries executed inside `loadOneWithPgClient` callbacks
|
|
265
260
|
* are logged to `console.log` with `[@stonecrop/graphql-middleware]` prefix. Defaults to `false`.
|
|
266
261
|
*/
|
|
267
262
|
debug?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Override the PostgreSQL FROM clause target for specific doctypes, keyed by doctype name.
|
|
265
|
+
* Values may be a bare table name (`'plan'`) or a schema-qualified name (`'orpin.plan'`).
|
|
266
|
+
* SQL fragments and subqueries are not supported.
|
|
267
|
+
* When absent for a doctype, the table name is derived as `camelToSnake(doctype.name)`.
|
|
268
|
+
*/
|
|
269
|
+
tables?: Record<string, string>;
|
|
268
270
|
}
|
|
269
271
|
|
|
270
272
|
/**
|