Skip to content
New issue

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

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

Already on GitHub? # to your account

apoc.graph.fromDocument should consider mappings field into document whitelist #1333

Closed
conker84 opened this issue Nov 2, 2019 · 0 comments · Fixed by #1334
Closed

apoc.graph.fromDocument should consider mappings field into document whitelist #1333

conker84 opened this issue Nov 2, 2019 · 0 comments · Fixed by #1334

Comments

@conker84
Copy link
Collaborator

conker84 commented Nov 2, 2019

The following call:

CALL apoc.graph.fromDocument('{
	"id": 1,
	"text": "Text",
	"data": "02-11-2019",
	"user": { "id": 1, "screenName": "conker84" },
	"geo", { "latitude": 11.45, "longitude": -12.3 }
}', {
  mappings: { `$`: "Tweet{!id, text}", `$.user`: "User{!screenName}" }
}) yield graph

Does not produce the correct graph, because it excludes the user field.

conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Nov 2, 2019
mneedham pushed a commit that referenced this issue Nov 7, 2019
sarmbruster pushed a commit that referenced this issue Nov 14, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant