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:
parent
52709ad04c
commit
1e87f888ae
@ -3,7 +3,7 @@ MATCH (:Person {id:"933"})<-[:HAS_CREATOR]-(m)-[:REPLY_OF*0..]->(p:Post)
|
|||||||
MATCH (p)-[:HAS_CREATOR]->(c)
|
MATCH (p)-[:HAS_CREATOR]->(c)
|
||||||
RETURN
|
RETURN
|
||||||
m.id as messageId,
|
m.id as messageId,
|
||||||
CASE m.content IS null
|
CASE m.content IS NOT null
|
||||||
WHEN true THEN m.content
|
WHEN true THEN m.content
|
||||||
ELSE m.imageFile
|
ELSE m.imageFile
|
||||||
END AS messageContent,
|
END AS messageContent,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Message Content
|
// Message Content
|
||||||
MATCH (m:Message {id:"1236950581249"})
|
MATCH (m:Message {id:"1236950581249"})
|
||||||
RETURN
|
RETURN
|
||||||
CASE m.content IS null
|
CASE m.content IS NOT null
|
||||||
WHEN true THEN m.content
|
WHEN true THEN m.content
|
||||||
ELSE m.imageFile
|
ELSE m.imageFile
|
||||||
END AS messageContent,
|
END AS messageContent,
|
||||||
|
Loading…
Reference in New Issue
Block a user