Cypher Query Language Reference, Version 9 Table of Contents
Total Page:16
File Type:pdf, Size:1020Kb
Cypher Query Language Reference, Version 9 Table of Contents Introduction . 2 What is Cypher? . 2 Querying and updating the graph . 2 Property Graph Model . 4 Definitions . 4 Graph attributes . 5 Patterns. 6 Introduction . 6 Uniqueness . 6 Patterns for nodes . 8 Patterns for related nodes . 8 Patterns for labels . 9 Specifying properties . 9 Patterns for relationships . 10 Variable-length pattern matching . 11 Assigning to path variables . 12 Types, lists and maps . 13 Types. 13 Type coercions . 15 Lists . 16 Maps . 20 Working with null . 22 Comparability, equality, orderability and equivalence . 25 Introduction . 25 Concepts. 26 Comparability and equality . 27 Orderability and equivalence. 30 Aggregation . 32 Summary of the conceptual model . 33 Examples . 33 Benefits . 34 Caveats . 34 Appendix: Comparability by Type . 34 Expressions, variables and parameters . 36 Expressions . 36 CASE expressions. 37 Variables . 41 Parameters . 42 Operators . 46 Operators at a glance . 46 General operators . 47 Mathematical operators. 48 Comparison operators . 49 Boolean operators . 50 String operators . 51 List operators . 51 Equality and comparison of values. 53 Ordering and comparison of values . 53 Chaining comparison operations . ..