@constructive-io/graphql-types 2.15.0 → 3.0.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/graphile.js CHANGED
@@ -3,9 +3,8 @@
3
3
  */
4
4
  export const graphileDefaults = {
5
5
  schema: [],
6
- appendPlugins: [],
7
- overrideSettings: {},
8
- graphileBuildOptions: {},
6
+ extends: [],
7
+ preset: {},
9
8
  };
10
9
  /**
11
10
  * Default feature options for GraphQL/Graphile
package/graphile.d.ts CHANGED
@@ -1,17 +1,14 @@
1
- import type { Plugin } from 'graphile-build';
2
- import { PostGraphileOptions } from 'postgraphile';
1
+ import type { GraphileConfig } from 'graphile-config';
3
2
  /**
4
- * PostGraphile/Graphile configuration
3
+ * PostGraphile/Graphile v5 configuration
5
4
  */
6
5
  export interface GraphileOptions {
7
6
  /** Database schema(s) to expose through GraphQL */
8
7
  schema?: string | string[];
9
- /** Additional Graphile plugins to load */
10
- appendPlugins?: Plugin[];
11
- /** Build options for Graphile */
12
- graphileBuildOptions?: PostGraphileOptions['graphileBuildOptions'];
13
- /** Override settings for PostGraphile */
14
- overrideSettings?: Partial<PostGraphileOptions>;
8
+ /** Additional presets to extend */
9
+ extends?: GraphileConfig.Preset[];
10
+ /** Preset overrides */
11
+ preset?: Partial<GraphileConfig.Preset>;
15
12
  }
16
13
  /**
17
14
  * Feature flags and toggles for GraphQL/Graphile
package/graphile.js CHANGED
@@ -6,9 +6,8 @@ exports.apiDefaults = exports.graphileFeatureDefaults = exports.graphileDefaults
6
6
  */
7
7
  exports.graphileDefaults = {
8
8
  schema: [],
9
- appendPlugins: [],
10
- overrideSettings: {},
11
- graphileBuildOptions: {},
9
+ extends: [],
10
+ preset: {},
12
11
  };
13
12
  /**
14
13
  * Default feature options for GraphQL/Graphile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-types",
3
- "version": "2.15.0",
3
+ "version": "3.0.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive GraphQL/Graphile types for PostGraphile integration",
6
6
  "main": "index.js",
@@ -31,9 +31,8 @@
31
31
  "dependencies": {
32
32
  "@pgpmjs/types": "^2.16.0",
33
33
  "deepmerge": "^4.3.1",
34
- "graphile-build": "^4.14.1",
35
- "pg-env": "^1.4.0",
36
- "postgraphile": "^4.14.1"
34
+ "graphile-config": "1.0.0-rc.3",
35
+ "pg-env": "^1.4.0"
37
36
  },
38
37
  "keywords": [
39
38
  "graphql",
@@ -44,7 +43,7 @@
44
43
  "graphile"
45
44
  ],
46
45
  "devDependencies": {
47
- "makage": "^0.1.12"
46
+ "makage": "^0.1.10"
48
47
  },
49
- "gitHead": "048188f6b43ffaa6146e7694b2b0d35d34cb2945"
48
+ "gitHead": "b2daeefe49cdefb3d01ea63cf778fb9b847ab5fe"
50
49
  }