Re: [Neo4j] Confused by "Type mismatch: expected Map, Node or Relationship but was Any"

1,165 views
Skip to first unread message

Michael Hunger

unread,
Nov 4, 2015, 4:46:57 PM11/4/15
to ne...@googlegroups.com
I think it's better to not use mixed type lists.

Also you cannot use maps right now as property values.

What is "r" ?



Am 04.11.2015 um 18:53 schrieb bebbio <elgh...@gmail.com>:

Hi,

I have a test query

UNWIND [['m...@email.com', {auth:true}]] as key_role
WITH key_role
...
SET r = key_role[1]

and it returns
"Type mismatch: expected Map, Node or Relationship but was Any"

If I RETURN key_role[1] instead, the response contains a row like this:
    {
        "auth": true
    }


Is anyone able to say what I did wrong?
Thanks!

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages