@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 CHANGED
@@ -93,7 +93,6 @@ Each doctype JSON file defines structure, relationships, and workflow:
93
93
  ```json
94
94
  {
95
95
  "name": "SalesOrder",
96
- "tableName": "sales_orders",
97
96
  "fields": [
98
97
  { "fieldname": "id", "fieldtype": "Data" },
99
98
  { "fieldname": "status", "fieldtype": "Select" }
@@ -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
  /**