Correctly transform exists to is not null check

Reviewers: buda, mislav.bradac

Reviewed By: mislav.bradac

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D731
This commit is contained in:
Teon Banek 2017-08-30 16:15:39 +02:00
parent 52709ad04c
commit 1e87f888ae
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ MATCH (:Person {id:"933"})<-[:HAS_CREATOR]-(m)-[:REPLY_OF*0..]->(p:Post)
MATCH (p)-[:HAS_CREATOR]->(c)
RETURN
m.id as messageId,
CASE m.content IS null
CASE m.content IS NOT null
WHEN true THEN m.content
ELSE m.imageFile
END AS messageContent,

View File

@ -1,7 +1,7 @@
// Message Content
MATCH (m:Message {id:"1236950581249"})
RETURN
CASE m.content IS null
CASE m.content IS NOT null
WHEN true THEN m.content
ELSE m.imageFile
END AS messageContent,