@easy-cms/plugin-graphql 0.64.0 → 0.66.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/dist/index.d.ts +4 -1
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -130,7 +130,10 @@ interface GraphQLPluginOptions extends SchemaOptions {
|
|
|
130
130
|
/** Most documents one request loads, relationships included. Default 2000. */
|
|
131
131
|
readonly documents?: number;
|
|
132
132
|
};
|
|
133
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Let clients read the schema (`__schema`), as GraphiQL and codegen against the endpoint do.
|
|
135
|
+
* Default: outside production. `easy-cms generate:graphql` writes the schema for codegen anyway.
|
|
136
|
+
*/
|
|
134
137
|
readonly introspection?: boolean;
|
|
135
138
|
/**
|
|
136
139
|
* GraphiQL for browsers that open the endpoint. Default: outside production
|
package/dist/index.js
CHANGED
|
@@ -317,7 +317,7 @@ var INFO = {
|
|
|
317
317
|
name: "@easy-cms/plugin-graphql",
|
|
318
318
|
// The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
|
|
319
319
|
apiVersion: 1,
|
|
320
|
-
...true ? { version: "0.
|
|
320
|
+
...true ? { version: "0.66.0" } : {}
|
|
321
321
|
};
|
|
322
322
|
|
|
323
323
|
// src/schema.ts
|
|
@@ -1290,7 +1290,7 @@ function graphqlPlugin(options = {}) {
|
|
|
1290
1290
|
schema: schemaOf(args.cms),
|
|
1291
1291
|
depth: options.limits?.depth ?? DEFAULT_DEPTH,
|
|
1292
1292
|
documents: options.limits?.documents ?? DEFAULT_DOCUMENTS,
|
|
1293
|
-
introspection: options.introspection ??
|
|
1293
|
+
introspection: options.introspection ?? process.env.NODE_ENV !== "production",
|
|
1294
1294
|
graphiql: options.graphiql ?? process.env.NODE_ENV !== "production"
|
|
1295
1295
|
});
|
|
1296
1296
|
const path = options.path ?? "/graphql";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-graphql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"description": "GraphQL API for Easy CMS: queries and mutations for every collection and global, with the same access rules as REST (experimental)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"graphql": "^16.11.0 || ^17.0.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@easy-cms/core": "^0.
|
|
23
|
+
"@easy-cms/core": "^0.66.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@easy-cms/core": "^0.
|
|
27
|
-
"@easy-cms/db-sqlite": "^0.
|
|
26
|
+
"@easy-cms/core": "^0.66.0",
|
|
27
|
+
"@easy-cms/db-sqlite": "^0.66.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.12"
|