binary expression in return statement

12 views
Skip to first unread message

Rajeev Nithiyananthan

unread,
Dec 17, 2013, 11:56:55 PM12/17/13
to neo4j...@googlegroups.com
Hi guys,

I am trying to get the Cypher query below written out in GraphClient but i am faced with the following exception:

 Expression of type System.Linq.Expressions.LogicalBinaryExpression is not supported.

Is anyone already working on a solution for this or is there a workaround for it?

Thanks..


The query

START agency=node(0)
MATCH agency
-[:AGENCY_HAS_PEOPLE]-()
-[:AGENCY_HAS_PERSON]-person
person-[?:PERSON_IS_CARER]-carer,
person-[?:PERSON_IS_CLIENT]-client
WHERE (person.UniqueId! = 18989)   
RETURN person, carer is not null as IsCarer, client is not null as IsClient




Romiko van de dronker Derbynew

unread,
Dec 18, 2013, 5:44:28 AM12/18/13
to neo4j...@googlegroups.com
Try

START agency=node(0)
MATCH agency
-[:AGENCY_HAS_PEOPLE]-()
-[:AGENCY_HAS_PERSON]-person
person-[?:PERSON_IS_CARER]-carer,
person-[?:PERSON_IS_CLIENT]-client
WHERE (person.UniqueId != 18989)   
RETURN person, carer is not null as IsCarer, client is not null as IsClient

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



--
Romiko Derbynew




Rajeev Nithiyananthan

unread,
Dec 18, 2013, 5:41:13 PM12/18/13
to neo4j...@googlegroups.com
hey buddy nice to hear from you...

the query i posted is actually working but i dont know how to get it to work using Neo4jClient, mainly in the return statement



.Return((person, client, carer) => new
                {
                    Person = person.As<Person>(),
                    IsClient = client != null
                    IsCarer = carer != null
                });

executing the above statement throws the following exception
 Expression of type System.Linq.Expressions.LogicalBinaryExpression is not supported.

Any ideas?

Rajeev Nithiyananthan

unread,
Dec 19, 2013, 7:14:07 PM12/19/13
to neo4j...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages