dyngodb icon indicating copy to clipboard operation
dyngodb copied to clipboard

Inconsistent refs

Open aaaristo opened this issue 11 years ago • 2 comments

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 } ) }

aaaristo avatar Oct 11 '13 10:10 aaaristo

this should enable cross collection refs

aaaristo avatar Oct 11 '13 10:10 aaaristo

https://github.com/aaaristo/dyngodb/commit/bfa6934dbeb7c09a8047d0c1a1c7f112af1fb1bf

some progress

aaaristo avatar Aug 04 '14 14:08 aaaristo