This models extends the Node object of the neo4j module with: * get the collectionname and _if of the mongodb document * load the corresponding document from mongodb
Is needed for prototyping
Check that we don't override existing functions
we need to query the collection natively here TODO: find a more elegant way to access models instead of needing the "registerModels" way...
try to extract collection from url (indexed namespace) TODO: better could be via parent document if exists indexed: 'http://localhost:7474/db/data/index/node/people/_id/516123bcc86e28485e000007/755' }
TODO: sometimes node doen't include the data -> would need extra call e.g.: _data: { self: 'http://localhost:7474/db/data/node/X' } }
Native mongodb call, so we need the objectid as object
Extend Neo4j