@geodedb/client 1.1.0 → 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 +12 -0
- package/dist/index.d.ts +295 -89
- package/dist/index.js +1484 -777
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
- package/proto/geode.proto +7 -1
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ host:port # Simple format (uses QUIC)
|
|
|
75
75
|
| `server_name` | SNI server name | - |
|
|
76
76
|
| `connect_timeout` | Connection timeout (ms) | 30000 |
|
|
77
77
|
| `request_timeout` | Request timeout (ms) | 120000 |
|
|
78
|
+
| `inline_timeout` | Wait for the inline first page before falling back to PULL (ms) | 5000 |
|
|
78
79
|
|
|
79
80
|
### Environment Variables
|
|
80
81
|
|
|
@@ -433,6 +434,17 @@ const value = fromJSON({ name: 'Alice', age: 30 });
|
|
|
433
434
|
| UUID | string |
|
|
434
435
|
| JSON/JSONB | any |
|
|
435
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
|
+
|
|
436
448
|
## Error Handling
|
|
437
449
|
|
|
438
450
|
```typescript
|