@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 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, { 'data.difficulty': 'extreme' });
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, { 'data.registeredRiders': count + 1 });
173
+ await tx.updateNode(depId, { registeredRiders: count + 1 });
174
174
  }
175
175
  });
176
176
  ```