Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
clamor opened this issue Jun 27, 2016 · 8 comments
Open

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

clamor opened this issue Jun 27, 2016 · 8 comments

Comments

@clamor
Copy link

clamor commented Jun 27, 2016

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
Copy link

CIB commented Jul 20, 2016

👍

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

@jafuentest
Copy link

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
Copy link

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

@osrl
Copy link

osrl commented Oct 26, 2016

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

@yue-wen
Copy link

yue-wen commented May 29, 2017

please someone solve this issue!
Need it very much.

@vaibhavbhalla07
Copy link

Any updates on this?

@mohamed-kagyama
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants