@constructive-io/graphql-server 3.0.0 → 3.0.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.
@@ -15,10 +15,6 @@ export const apiSelect = {
15
15
  },
16
16
  first: connectionFirst,
17
17
  },
18
- apiExtensions: {
19
- select: { schemaName: true },
20
- first: connectionFirst,
21
- },
22
18
  schemasByApiSchemaApiIdAndSchemaId: {
23
19
  select: { schemaName: true },
24
20
  first: connectionFirst,
@@ -90,8 +86,7 @@ export const createGraphileOrm = (graphile) => {
90
86
  };
91
87
  };
92
88
  export const normalizeApiRecord = (api) => {
93
- const schemaNames = (api.apiExtensions?.nodes ?? []).flatMap((node) => node.schemaName ? [node.schemaName] : []);
94
- const additionalSchemas = (api.schemasByApiSchemaApiIdAndSchemaId?.nodes ?? []).flatMap((node) => (node.schemaName ? [node.schemaName] : []));
89
+ const schemaNames = (api.schemasByApiSchemaApiIdAndSchemaId?.nodes ?? []).flatMap((node) => (node.schemaName ? [node.schemaName] : []));
95
90
  let domains = [];
96
91
  if (api.domains?.nodes?.length) {
97
92
  domains = api.domains.nodes.reduce((acc, domain) => {
@@ -108,7 +103,7 @@ export const normalizeApiRecord = (api) => {
108
103
  dbname: api.dbname,
109
104
  anonRole: api.anonRole,
110
105
  roleName: api.roleName,
111
- schema: [...schemaNames, ...additionalSchemas],
106
+ schema: schemaNames,
112
107
  apiModules: api.apiModules?.nodes?.map((node) => ({
113
108
  name: node.name,
114
109
  data: node.data,
@@ -18,12 +18,6 @@ export declare const apiSelect: {
18
18
  };
19
19
  first: number;
20
20
  };
21
- apiExtensions: {
22
- select: {
23
- schemaName: true;
24
- };
25
- first: number;
26
- };
27
21
  schemasByApiSchemaApiIdAndSchemaId: {
28
22
  select: {
29
23
  schemaName: true;
@@ -68,12 +62,6 @@ export declare const domainSelect: {
68
62
  };
69
63
  first: number;
70
64
  };
71
- apiExtensions: {
72
- select: {
73
- schemaName: true;
74
- };
75
- first: number;
76
- };
77
65
  schemasByApiSchemaApiIdAndSchemaId: {
78
66
  select: {
79
67
  schemaName: true;
package/middleware/gql.js CHANGED
@@ -18,10 +18,6 @@ exports.apiSelect = {
18
18
  },
19
19
  first: exports.connectionFirst,
20
20
  },
21
- apiExtensions: {
22
- select: { schemaName: true },
23
- first: exports.connectionFirst,
24
- },
25
21
  schemasByApiSchemaApiIdAndSchemaId: {
26
22
  select: { schemaName: true },
27
23
  first: exports.connectionFirst,
@@ -94,8 +90,7 @@ const createGraphileOrm = (graphile) => {
94
90
  };
95
91
  exports.createGraphileOrm = createGraphileOrm;
96
92
  const normalizeApiRecord = (api) => {
97
- const schemaNames = (api.apiExtensions?.nodes ?? []).flatMap((node) => node.schemaName ? [node.schemaName] : []);
98
- const additionalSchemas = (api.schemasByApiSchemaApiIdAndSchemaId?.nodes ?? []).flatMap((node) => (node.schemaName ? [node.schemaName] : []));
93
+ const schemaNames = (api.schemasByApiSchemaApiIdAndSchemaId?.nodes ?? []).flatMap((node) => (node.schemaName ? [node.schemaName] : []));
99
94
  let domains = [];
100
95
  if (api.domains?.nodes?.length) {
101
96
  domains = api.domains.nodes.reduce((acc, domain) => {
@@ -112,7 +107,7 @@ const normalizeApiRecord = (api) => {
112
107
  dbname: api.dbname,
113
108
  anonRole: api.anonRole,
114
109
  roleName: api.roleName,
115
- schema: [...schemaNames, ...additionalSchemas],
110
+ schema: schemaNames,
116
111
  apiModules: api.apiModules?.nodes?.map((node) => ({
117
112
  name: node.name,
118
113
  data: node.data,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-server",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive GraphQL Server",
6
6
  "main": "index.js",
@@ -56,15 +56,15 @@
56
56
  "gql-ast": "^2.6.0",
57
57
  "graphile-build": "^4.14.1",
58
58
  "graphile-cache": "^2.0.0",
59
- "graphile-i18n": "^1.0.0",
60
- "graphile-meta-schema": "^1.0.0",
61
- "graphile-plugin-connection-filter": "^3.0.0",
62
- "graphile-plugin-connection-filter-postgis": "^2.0.0",
63
- "graphile-plugin-fulltext-filter": "^3.0.0",
59
+ "graphile-i18n": "^1.0.1",
60
+ "graphile-meta-schema": "^1.0.1",
61
+ "graphile-plugin-connection-filter": "^3.0.1",
62
+ "graphile-plugin-connection-filter-postgis": "^2.0.2",
63
+ "graphile-plugin-fulltext-filter": "^3.0.1",
64
64
  "graphile-query": "^2.5.1",
65
- "graphile-search-plugin": "^1.0.0",
66
- "graphile-settings": "^3.0.0",
67
- "graphile-simple-inflector": "^1.0.0",
65
+ "graphile-search-plugin": "^1.0.1",
66
+ "graphile-settings": "^3.0.2",
67
+ "graphile-simple-inflector": "^1.0.1",
68
68
  "graphile-utils": "^4.14.1",
69
69
  "graphql": "15.10.1",
70
70
  "graphql-tag": "2.12.6",
@@ -83,11 +83,11 @@
83
83
  "@types/graphql-upload": "^8.0.12",
84
84
  "@types/pg": "^8.16.0",
85
85
  "@types/request-ip": "^0.0.41",
86
- "graphile-test": "3.0.0",
86
+ "graphile-test": "3.0.1",
87
87
  "makage": "^0.1.10",
88
88
  "nodemon": "^3.1.10",
89
89
  "rimraf": "^6.1.2",
90
90
  "ts-node": "^10.9.2"
91
91
  },
92
- "gitHead": "390f4dd57fc158554518ec454bf2a4856d550552"
92
+ "gitHead": "b7b9bf9712a5d48619d6b19be6361251468e1bda"
93
93
  }