@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.
@@ -19,7 +19,11 @@ export declare class LoraGraphQL {
19
19
  #private;
20
20
  readonly model: GraphModel;
21
21
  constructor(options: LoraGraphQLOptions);
22
- /** The configured document guards as validation rules. */
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
@@ -1,5 +1,5 @@
1
1
  import { graphql as g } from "graphql";
2
- import { a as h, l as b } from "./lora-graphql-lDHxpET-.js";
2
+ import { a as h, l as b } from "./lora-graphql-CR1tRkf_.js";
3
3
  async function T(l) {
4
4
  let u;
5
5
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loradb/lora-graphql",
3
- "version": "0.26.0",
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.0",
68
+ "@loradb/lora-node": "^0.26.1",
69
69
  "graphql": "^16.8.0 || ^17.0.0"
70
70
  },
71
71
  "devDependencies": {