@loradb/lora-graphql 0.26.0 → 0.26.1
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/README.md +3 -1
- package/dist/cli.js +2 -2
- package/dist/{diff-o9laZ0uY.js → diff-CuNykick.js} +2 -2
- package/dist/{diff-o9laZ0uY.js.map → diff-CuNykick.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{lora-graphql-lDHxpET-.js → lora-graphql-CR1tRkf_.js} +1889 -1829
- package/dist/lora-graphql-CR1tRkf_.js.map +1 -0
- package/dist/lora-graphql.d.ts +5 -1
- package/dist/quantifier-rule.d.ts +9 -0
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/dist/lora-graphql-lDHxpET-.js.map +0 -1
package/dist/lora-graphql.d.ts
CHANGED
|
@@ -19,7 +19,11 @@ export declare class LoraGraphQL {
|
|
|
19
19
|
#private;
|
|
20
20
|
readonly model: GraphModel;
|
|
21
21
|
constructor(options: LoraGraphQLOptions);
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* The validation rules to add to the standard ones: the configured
|
|
24
|
+
* document guards, and the refusal of a literal empty relationship
|
|
25
|
+
* quantifier (`some: {}`), which would match every row.
|
|
26
|
+
*/
|
|
23
27
|
validationRules(): ValidationRule[];
|
|
24
28
|
/**
|
|
25
29
|
* The configured document guards as an Envelop / Yoga plugin. With
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GraphQLError, GraphQLInputType, ValidationRule, ValueNode } from 'graphql';
|
|
2
|
+
/**
|
|
3
|
+
* The first literal empty `some`, `none` or `single` in an argument value
|
|
4
|
+
* of `type`, as an error. `name` is the field (or argument) that holds
|
|
5
|
+
* `value`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function emptyQuantifier(value: ValueNode, type: GraphQLInputType, name: string): GraphQLError | undefined;
|
|
8
|
+
/** Refuses a literal empty `some`, `none` or `single` (`some: {}`). */
|
|
9
|
+
export declare const emptyQuantifierRule: ValidationRule;
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loradb/lora-graphql",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "Schema-first GraphQL for LoraDB: one annotated SDL becomes an executable, index-aware GraphQL API that compiles every operation to a single Cypher statement.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"packageManager": "yarn@4.5.1",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"bench:load": "node bench/load/main.mjs"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@loradb/lora-node": "^0.26.
|
|
68
|
+
"@loradb/lora-node": "^0.26.1",
|
|
69
69
|
"graphql": "^16.8.0 || ^17.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|