MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_optional_match

Function parse_optional_match

nodedb/src/engine/graph/pattern/compiler/mod.rs:253–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251
252 #[test]
253 fn parse_optional_match() {
254 let q =
255 parse("MATCH (a:Person)-[:KNOWS]->(b) OPTIONAL MATCH (a)-[:LIKES]->(c) RETURN a, b, c")
256 .unwrap();
257 assert_eq!(q.clauses.len(), 2);
258 assert!(!q.clauses[0].optional);
259 assert!(q.clauses[1].optional);
260 }
261
262 #[test]
263 fn parse_where_equals() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected