neo4j-contrib / neo4j_doc_manager

Doc manager for Neo4j
Apache License 2.0
99 stars 26 forks source link

Inserting an array of document-ids does not get replicated to neo4j #61

Open clamor opened 8 years ago

clamor commented 8 years ago

I tried something like db.items.insertOne({name:"item05",description:"desc05",items_id:["57719752029ffbfb3c4cd0af","577197a8029ffbfb3c4cd0b0"]})

which gets inserted to mongo, but didn't find its way to neo4j.

db.items.insertOne({name:"item05",description:"desc05",items_id:"57719752029ffbfb3c4cd0af"}) works fine. (mongo 3.2, neo4j 2.3.3, latest neo4j_doc_manager (without 3.0-updates)

Are lists/arrays of ids not supported or is there another way?

CIB commented 8 years ago

:+1:

Looking at the source code, it does not seem to be supported. It sounds like an important feature to add, however.

jafuentest commented 8 years ago

Hi, I'm new to Neo4j, and I'm having the same issue with the Doc Manager. Is there any workaround for this using the DM?

nicolo-paganin commented 8 years ago

Same for me, it is not possible to create multiple relations between nodes (i.e. array of object ids is not supported)

osrl commented 8 years ago

There is a TODO line here Is there an estimated time for this to be implemented?

yue-wen commented 7 years ago

please someone solve this issue! Need it very much.

vaibhavbhalla07 commented 7 years ago

Any updates on this?

mohamed-kagyama commented 5 years ago

try is this way it may work db.items.insertOne({"name":"item05","description":"desc05","items":["57719752029ffbfb3c4cd0af","577197a8029ffbfb3c4cd0b0"]}): neo4j somehow associates nodes with the one you are about to create when you mention the field: "items_id". and since you mentioned more than one i think that's why it didn't work. other than that arrays work fine i guess.

amancioandre commented 5 years ago

The code I wrote appends profiles to an array of references as they are added by the user in the following section. "follow": [ "5d40cb39196069b205282ef2", "5d40cb39196069b205282f02", "5d40cb39196069b205282f0a", "5d40cb39196069b205282eea", "5d40cb39196069b205282efb", "5d40cb39196069b205282eeb", "5d40cb39196069b205282ef3", "5d40cb39196069b205282f03", "5d40cb39196069b205282f0b", ], "posts": [], "created_at": "2019-07-30T22:54:56.932Z", "updated_at": "2019-07-30T22:54:56.932Z", "_id": "5d40cb0d196069b205282edf", "full_name": "Some Awesome Name",

But, neo4j does not recognize each new insertion on this profile as a relationship of type 'follow'. Is there anything that I am missing to config for neo4j-doc-manager?