I need help on this problem, is there a way to get all related users given a start user? I search and read through the docs and the best match is using (u)-[*1..3]-(t:User). But the result is not what I want, can someone help me?
I started with a q...
Hi,
I am given a Core User and need to match all the relationships start with Core User to other Users. Core User is also labeled with User. I have the following relationships:
(cu:User)-[:FOLLOWING]->(:User), Core User is following some Users(cu:Use...
Is it possible to get total and paging data in one query? Say I have 100 total rows and my output looks like
{
"total": 100,
"list": [1, 3, 5, 7, 10]
}
I tried to achieve this with a query like
MATCH (:User {uid: $uid})-[:R1]->(:Chat)<-[:R2]-(:P...
Hi,
I have three kinds of labeled nodes. User, Post, and Chat. I'm trying to merge some posts belong to a chat. Here's my raw data from REST.
{
"chatId": "some chat id",
"posts": [
{
"title": "some title",
"author": {
"id"...
The query is a bit complex to me. And i tried to verify with those three queries, it doesn't seem right.
the three queries result:
╒═══════════════════╕
│"count(distinct t)"│
╞═══════════════════╡
│5150 │
├───────────────────┤
│12544 ...
andrew.bowman:
and lend s
yes, the counts are much greater. I am getting confuse, from the thrid query, I am not sure why the count get so huge. Does empty () match any labels? If that's the case, there might be a path like (u)--(:User)-(:User...
MATCH (u:User {uid: $uid})--(t:User)
return count(distinct t)
UNION
MATCH (u:User {uid: $uid})--(:Post)--(t:User)
return count(distinct t)
UNION
MATCH (u:User {uid: $uid})--(:Chat)--(:Post)--(t:User)
return count(distinct t)
I removed all the direct...
Thank you for your reply! @andrew.bowman
I execute the query below:
MATCH (u:User {uid: $uid})--(t:User)
return count(distinct t)
UNION
MATCH (u:User {uid: $uid})-->(:Post)<--(t:User)
return count(distinct t)
UNION
MATCH (u:User {uid: $uid})-->(:Chat...