graphile-query 2.1.7 → 2.2.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/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { withPostGraphileContext, createPostGraphileSchema } from 'postgraphile';
2
1
  import { graphql } from 'graphql';
3
2
  import { print } from 'graphql/language/printer';
3
+ import { createPostGraphileSchema, withPostGraphileContext } from 'postgraphile';
4
4
  export const getSchema = async (pool, settings) => await createPostGraphileSchema(pool, settings.schema, settings);
5
5
  export class GraphileQuery {
6
6
  pool;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { PostGraphileOptions } from 'postgraphile';
2
- import { GraphQLSchema, ExecutionResult } from 'graphql';
1
+ import { ExecutionResult, GraphQLSchema } from 'graphql';
3
2
  import { Pool } from 'pg';
3
+ import { PostGraphileOptions } from 'postgraphile';
4
4
  interface GraphileSettings extends PostGraphileOptions {
5
5
  schema: string | string[];
6
6
  }
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GraphileQuerySimple = exports.GraphileQuery = exports.getSchema = void 0;
4
- const postgraphile_1 = require("postgraphile");
5
4
  const graphql_1 = require("graphql");
6
5
  const printer_1 = require("graphql/language/printer");
6
+ const postgraphile_1 = require("postgraphile");
7
7
  const getSchema = async (pool, settings) => await (0, postgraphile_1.createPostGraphileSchema)(pool, settings.schema, settings);
8
8
  exports.getSchema = getSchema;
9
9
  class GraphileQuery {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-query",
3
- "version": "2.1.7",
3
+ "version": "2.2.0",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "graphile query",
6
6
  "main": "index.js",
@@ -44,5 +44,5 @@
44
44
  "graphile",
45
45
  "launchql"
46
46
  ],
47
- "gitHead": "c3f7724c58901623f46adf6abbea8376f58a92df"
47
+ "gitHead": "cbf678ed3d22055b7d972468ca7f822b2662e7d0"
48
48
  }