Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Merge operation support #355

Merged
merged 12 commits into from
Dec 5, 2019
Merged

Merge operation support #355

merged 12 commits into from
Dec 5, 2019

Conversation

michaeldgraham
Copy link
Collaborator

This PR contains initial support for Merge operations for both nodes and relationships.

Upstream merge
This was implemented by unifying the merge logic with the update logic, with some minor branching used to capture translation differences.
Adds predicate functions for merge operations.

Fixes improper use of neo4j.int on whole number values provided to Float type fields on the Point type, in buildCypherParameters. For example, while a { height: 3.5 } param would be kept as { height: 3.5 }, if one were to provide { height: 3 }, then it would be inappropriately serialized to { height: {
low: 3, high: 0 } }.
Also changes the use of the pointKey Point type primary key on SpatialNode to use the non-pk 'point' field, since SpatialNode now has an 'id: ID' primary key.
Also updates the SpatialNode type to have an 'id: ID' primary key, given that the Point type should not be used
@codecov-io
Copy link

codecov-io commented Dec 4, 2019

Codecov Report

Merging #355 into master will decrease coverage by <.01%.
The diff coverage is 96.02%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #355      +/-   ##
==========================================
- Coverage   96.34%   96.33%   -0.01%     
==========================================
  Files          24       24              
  Lines        2705     2812     +107     
==========================================
+ Hits         2606     2709     +103     
- Misses         99      103       +4
Impacted Files Coverage Δ
src/augment/types/node/mutation.js 100% <100%> (ø) ⬆️
src/augment/types/relationship/mutation.js 100% <100%> (ø) ⬆️
src/utils.js 93.54% <91.04%> (-0.51%) ⬇️
src/translate.js 98.31% <98.91%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 080a7f6...e1ac087. Read the comment docs.

@johnymontana johnymontana merged commit 249903f into neo4j-graphql:master Dec 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants