@typicalday/firegraph 0.5.0 → 0.7.0
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 -3
- package/dist/editor/client/assets/index-BIwgcRWJ.js +411 -0
- package/dist/editor/client/assets/index-CJ4m_EOL.css +1 -0
- package/dist/editor/client/index.html +2 -2
- package/dist/editor/server/index.mjs +994 -313
- package/dist/index.cjs +20 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/editor/client/assets/index-DJJ_b0jI.js +0 -411
- package/dist/editor/client/assets/index-Q0QBYrMV.css +0 -1
package/README.md
CHANGED
|
@@ -107,8 +107,8 @@ await g.putNode('tour', tourId, { name: 'Dolomites Classic' });
|
|
|
107
107
|
const node = await g.getNode(tourId);
|
|
108
108
|
// → StoredGraphRecord | null
|
|
109
109
|
|
|
110
|
-
// Update fields (merge)
|
|
111
|
-
await g.updateNode(tourId, {
|
|
110
|
+
// Update fields (partial merge into data)
|
|
111
|
+
await g.updateNode(tourId, { difficulty: 'extreme' });
|
|
112
112
|
|
|
113
113
|
// Delete a node
|
|
114
114
|
await g.removeNode(tourId);
|
|
@@ -170,7 +170,7 @@ await g.runTransaction(async (tx) => {
|
|
|
170
170
|
|
|
171
171
|
if (count < 30) {
|
|
172
172
|
await tx.putEdge('departure', depId, 'hasRider', 'rider', riderId, {});
|
|
173
|
-
await tx.updateNode(depId, {
|
|
173
|
+
await tx.updateNode(depId, { registeredRiders: count + 1 });
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
```
|