21550d3bb1
Summary: - checked existing queries and added new ones - minor changes to LDBC setup Reviewers: teon.banek, buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D737
15 lines
520 B
Plaintext
15 lines
520 B
Plaintext
MATCH (:Person {id:"17592186052613"})-[:KNOWS]-(friend:Person)<-[:HAS_CREATOR]-(message)
|
|
WHERE message.creationDate <= 1354060800000 AND (message:Post OR message:Comment)
|
|
RETURN
|
|
friend.id AS personId,
|
|
friend.firstName AS personFirstName,
|
|
friend.lastName AS personLastName,
|
|
message.id AS messageId,
|
|
CASE exists(message.content)
|
|
WHEN true THEN message.content
|
|
ELSE message.imageFile
|
|
END AS messageContent,
|
|
message.creationDate AS messageDate
|
|
ORDER BY messageDate DESC, toInt(messageId) ASC
|
|
LIMIT 20;
|