Closed brunocascio closed 9 years ago
Sorry for the delay here! I somehow missed this. Did you manage to figure this out?
If not, the error message suggests that somehow one of your properties is an array, containing different types of elements. Not sure off the top of my head how that would happen given your code, but as a best practice anyway, it's really important to use proper query parameters, instead of injecting literal values into your raw query.
E.g.
CREATE (recipe)-[ri:HAS {riData}]->(ingredient)
{
"riData": {"unit": "vasos", "cant": 1}
}
I see you're already using other query parameters, e.g. {uid}
and the recipe node {data}
, so hopefully it's easy for you to use it here too.
Either way, one debugging step then becomes that if you encounter this error, console.log
the exact query and params that you sent. See if any have an array with mixed types.
Feel free to re-open if this is still an issue.
i get this code:
Produce:
Basically create recipe with relations (author and ingredients)
If run in neo-client (rest) it work, but when run with this library i get this error: