@omnigraph/mysql 0.9.6 → 0.9.7

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/cjs/schema.js CHANGED
@@ -58,6 +58,7 @@ async function loadGraphQLSchemaFromMySQL(subgraphName, opts) {
58
58
  subgraphName,
59
59
  tableName,
60
60
  tables,
61
+ tableFieldsConfig: opts.tableFields,
61
62
  schemaComposer,
62
63
  introspectionConnection,
63
64
  autoIncrementedColumns,
package/esm/schema.js CHANGED
@@ -55,6 +55,7 @@ export async function loadGraphQLSchemaFromMySQL(subgraphName, opts) {
55
55
  subgraphName,
56
56
  tableName,
57
57
  tables,
58
+ tableFieldsConfig: opts.tableFields,
58
59
  schemaComposer,
59
60
  introspectionConnection,
60
61
  autoIncrementedColumns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigraph/mysql",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -1,7 +1,9 @@
1
1
  import type { MySQLSSLOptions } from '@graphql-mesh/transport-mysql';
2
+ import type { TableFieldConfig } from './types.cjs';
2
3
  export interface LoadGraphQLSchemaFromMySQLOpts {
3
4
  endpoint: string;
4
5
  ssl?: MySQLSSLOptions;
5
6
  tables?: string[];
7
+ tableFields?: TableFieldConfig[];
6
8
  }
7
9
  export declare function loadGraphQLSchemaFromMySQL(subgraphName: string, opts: LoadGraphQLSchemaFromMySQLOpts): Promise<import("graphql").GraphQLSchema>;
@@ -1,7 +1,9 @@
1
1
  import type { MySQLSSLOptions } from '@graphql-mesh/transport-mysql';
2
+ import type { TableFieldConfig } from './types.js';
2
3
  export interface LoadGraphQLSchemaFromMySQLOpts {
3
4
  endpoint: string;
4
5
  ssl?: MySQLSSLOptions;
5
6
  tables?: string[];
7
+ tableFields?: TableFieldConfig[];
6
8
  }
7
9
  export declare function loadGraphQLSchemaFromMySQL(subgraphName: string, opts: LoadGraphQLSchemaFromMySQLOpts): Promise<import("graphql").GraphQLSchema>;