Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-20-2020 03:20 PM
MATCH (h:Product{_ID: row._start})
MATCH (t:Product{_ID: row._end})
CALL apoc.merge.relationship(h, row._type, { _rank:row._rank}, {}, t, {}) yield rel
RETURN rel
My relationship format is below, for example:
_start _end _type _rank
001 100 competitiveProduct 3
I want to specify that 'row._rank' is an integer.
Solved! Go to Solution.
11-21-2020 07:45 PM
Change:
{ _rank:row._rank}
to:
{ _rank:toInteger(row._rank)}
For other useful scalar functions, see: https://neo4j.com/docs/cypher-manual/current/functions/scalar/
11-21-2020 07:45 PM
Change:
{ _rank:row._rank}
to:
{ _rank:toInteger(row._rank)}
For other useful scalar functions, see: https://neo4j.com/docs/cypher-manual/current/functions/scalar/
All the sessions of the conference are now available online