What does the following Cypher query express? a. Get the node for Bart Baesens and a count

Question:

What does the following Cypher query express?

OPTIONAL MATCH (user: User)-[:FRIENDS_WITH]- (friend: User) WHERE user.name = "Bart Baesens" RETURN user,

a. Get the node for Bart Baesens and a count of all his friends, but only if at least one FRIENDS_WITH relation exists.

b. Get the node for Bart Baesens and a count of all his friends, even if no FRIENDS_WITH relation exists.

c. This query will fail if Bart Baesens is FRIENDS_WITH himself.

d. Get the node for Bart Baesens and all his friends.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: