@loradb/lora-graphql 0.24.0 → 0.24.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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as r, L as e, a as o, b as l, M as i, c as d, d as n, e as t, f as p, g as f, h as m, i as L, j as c, l as R, p as h, r as D, s as E, k as G, t as b, v as u } from "./driver-DSnytFsU.js";
2
- import { d as A } from "./diff-aDivqYqr.js";
1
+ import { D as r, L as e, a as o, b as l, M as i, c as d, d as n, e as t, f as p, g as f, h as m, i as L, j as c, l as R, p as h, r as D, s as E, k as G, t as b, v as u } from "./driver-CXKPLfkz.js";
2
+ import { d as A } from "./diff-K8-GSeKH.js";
3
3
  export {
4
4
  r as DEFAULT_GUARDS,
5
5
  e as LORA_GRAPHQL_ERROR_CODES,
@@ -72,9 +72,13 @@ export declare class LoraGraphQL {
72
72
  * of caller, from the same rules as `accessMatrix()`, plus the most
73
73
  * restrictive verdict per caller. Takes a document (source or parsed)
74
74
  * or the id of a persisted operation; `operationName` picks one of
75
- * several operations.
75
+ * several operations. A mutation's inputs are read for the
76
+ * relationship writes they make (a nested connect, disconnect, create,
77
+ * update or delete), which count towards its root field's verdict.
78
+ * Pass `variables` for inputs the document takes as variables; a
79
+ * variable without a value is listed in the field's `unresolved`.
76
80
  */
77
- operationAccess(document: string | DocumentNode, operationName?: string): OperationAccess;
81
+ operationAccess(document: string | DocumentNode, operationName?: string, variables?: Readonly<Record<string, unknown>>): OperationAccess;
78
82
  /**
79
83
  * The CI gate: @cypher statements plan, the database has what the API
80
84
  * needs, and each operation's statements seek where they should.
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 "./driver-DSnytFsU.js";
2
+ import { a as h, l as b } from "./driver-CXKPLfkz.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.24.0",
3
+ "version": "0.24.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.24.0",
68
+ "@loradb/lora-node": "^0.24.1",
69
69
  "graphql": "^16.8.0 || ^17.0.0"
70
70
  },
71
71
  "devDependencies": {