dyngodb
dyngodb copied to clipboard
Inconsistent refs
We need some kind of unified ref between objects: the only thing that identifies uniquely an object in dyngodb is the triple (collection,_id,_pos). So a ref should contain all of this info.
Refs are actually used by indexes, arrays that references external objects, objects that reference other objects. Actually we have like 3 similar refs :( implementations
Can be somenthing like this (should be a DynamoDB item): { _ref: JSON.stringify({ $collection: 'name of the collection', _id: 'uuid', _pos: 0 } ) }
this should enable cross collection refs
https://github.com/aaaristo/dyngodb/commit/bfa6934dbeb7c09a8047d0c1a1c7f112af1fb1bf
some progress