@geodedb/client 1.0.2 → 1.3.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 +17 -0
- package/dist/index.d.ts +889 -143
- package/dist/index.js +8822 -362
- package/dist/index.js.map +1 -1
- package/package.json +14 -8
- package/proto/geode.proto +14 -1
package/README.md
CHANGED
|
@@ -64,6 +64,9 @@ host:port # Simple format (uses QUIC)
|
|
|
64
64
|
| `hello_name` | Client name | geode-nodejs |
|
|
65
65
|
| `hello_ver` | Client version | 1.0.0 |
|
|
66
66
|
| `conformance` | GQL conformance level | min |
|
|
67
|
+
| `graph` | Graph to bind the session to | - |
|
|
68
|
+
| `tenant` | Tenant identifier (multi-tenant) | - |
|
|
69
|
+
| `role` | FLE role for field-level access | - |
|
|
67
70
|
| `tls` | Enable TLS (gRPC only) | true |
|
|
68
71
|
| `insecure_tls_skip_verify` | Skip TLS verification (dev only) | false |
|
|
69
72
|
| `ca` | Path to CA certificate | - |
|
|
@@ -72,6 +75,7 @@ host:port # Simple format (uses QUIC)
|
|
|
72
75
|
| `server_name` | SNI server name | - |
|
|
73
76
|
| `connect_timeout` | Connection timeout (ms) | 30000 |
|
|
74
77
|
| `request_timeout` | Request timeout (ms) | 120000 |
|
|
78
|
+
| `inline_timeout` | Wait for the inline first page before falling back to PULL (ms) | 5000 |
|
|
75
79
|
|
|
76
80
|
### Environment Variables
|
|
77
81
|
|
|
@@ -83,6 +87,8 @@ host:port # Simple format (uses QUIC)
|
|
|
83
87
|
| `GEODE_TLS_CA` | Default CA certificate path |
|
|
84
88
|
| `GEODE_USERNAME` | Default username |
|
|
85
89
|
| `GEODE_PASSWORD` | Default password |
|
|
90
|
+
| `GEODE_TENANT` | Default tenant identifier |
|
|
91
|
+
| `GEODE_ROLE` | Default FLE role |
|
|
86
92
|
|
|
87
93
|
### Example Configurations
|
|
88
94
|
|
|
@@ -428,6 +434,17 @@ const value = fromJSON({ name: 'Alice', age: 30 });
|
|
|
428
434
|
| UUID | string |
|
|
429
435
|
| JSON/JSONB | any |
|
|
430
436
|
|
|
437
|
+
#### 64-bit integers
|
|
438
|
+
|
|
439
|
+
INT/BIGINT columns and node/edge ids are 64-bit on the wire and decode
|
|
440
|
+
losslessly: a plain `number` when the value fits in the safe-integer range
|
|
441
|
+
(`|v| <= 2^53 - 1`), an exact `bigint` otherwise. Node and edge ids
|
|
442
|
+
(`GQLNode.id`, `GQLEdge.startNode`/`endNode`) are always `bigint`.
|
|
443
|
+
|
|
444
|
+
> **Note:** `JSON.stringify()` throws `TypeError: Do not know how to serialize a
|
|
445
|
+
> BigInt` on rows containing bigints. Convert first, e.g.
|
|
446
|
+
> `JSON.stringify(row, (_k, v) => (typeof v === 'bigint' ? v.toString() : v))`.
|
|
447
|
+
|
|
431
448
|
## Error Handling
|
|
432
449
|
|
|
433
450
|
```typescript
|