Skip to content

Commit 11c80fa

Browse files
michaeloboyleclaude
andcommitted
Export merge operations and update roadmap
Add Phase 3 merge functionality to public API: - Export MergeOptions, MergeResult, and related types - Update README with merge operations in Phase 3 - Add merge example to Quick Start - Mark index management as implemented Phase 3 Progress: - ✅ mergeNode() - Upsert nodes with conflict resolution - ✅ mergeEdge() - Upsert edges with properties - ✅ createIndex() - Custom index creation - ✅ dropIndex() - Index removal - ✅ listIndexes() - Index introspection - 🚧 Tests needed for merge operations Note: Merge operations are implemented but need comprehensive tests before being marked production-ready. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 38779bb commit 11c80fa

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ const similarJobs = db.traverse(job.id)
6262
// Shortest path
6363
const path = db.traverse(job.id)
6464
.shortestPath(anotherJob.id);
65+
66+
// Merge operations (upsert)
67+
const { node, created } = db.mergeNode('Company',
68+
{ name: 'TechCorp' }, // Match criteria
69+
{ industry: 'SaaS', size: 'Large' } // Properties to set
70+
);
6571
```
6672

6773
## Installation
@@ -148,11 +154,14 @@ See [SPARC-DEVELOPMENT.md](docs/SPARC-DEVELOPMENT.md) for detailed methodology d
148154
- [x] Path enumeration (paths() wrapper)
149155
- [x] Integration tests (13 integration tests)
150156

151-
### Phase 3: Advanced Features
157+
### Phase 3: Advanced Features (In Progress)
158+
- [x] Merge operations (mergeNode, mergeEdge)
159+
- [x] Index management (createIndex, dropIndex, listIndexes)
160+
- [ ] Merge operation tests
152161
- [ ] All paths finding
153162
- [ ] Pattern matching
154163
- [ ] Bulk operations
155-
- [ ] Export/import
164+
- [x] Export/import (implemented in Phase 1)
156165

157166
### Phase 4: Documentation
158167
- [ ] API documentation

src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ export type {
4040
GraphExport
4141
} from './types';
4242

43+
// Merge operation types
44+
export type {
45+
MergeOptions,
46+
EdgeMergeOptions,
47+
MergeResult,
48+
EdgeMergeResult,
49+
MergeConflictError,
50+
MergePerformanceWarning,
51+
IndexInfo
52+
} from './types/merge';
53+
4354
// Utility functions (for advanced usage)
4455
export { serialize, deserialize, timestampToDate, dateToTimestamp } from './utils/serialization';
4556
export {

0 commit comments

Comments
 (0)