Neo4j Docs Docs
Docs
Neo4j DBMS
  • Getting Started
  • Operations
  • Migration and Upgrade
  • Status Codes
  • Java Reference
  • Kerberos Add-on
Neo4j Aura
  • Neo4j Aura
  • Neo4j AuraDB
  • Neo4j AuraDS
Neo4j Tools
  • Neo4j Bloom
  • Neo4j Browser
  • Neo4j Data Importer
  • Neo4j Desktop
  • Neo4j Ops Manager
Neo4j Graph Data Science
  • Neo4j Graph Data Science Library
Cypher Query Language
  • Cypher
  • Cypher Cheat Sheet
  • APOC Library
Create applications
  • Python Driver
  • Go Driver
  • Java Driver
  • JavaScript Driver
  • .Net Driver
  • Neo4j GraphQL Library
  • HTTP API
  • OGM Library
  • Spring Data Neo4j
  • Neo4j Connector for Apache Spark
  • Neo4j Connector for Apache Kafka
Labs
arrows.app
  • Details
  • arrows.app
APOC Extended
  • Documentation
  • Developer Guide
Halin
ETL Tool
  • Details
  • Documentation
Neo4j Migrations
  • Details
  • Documentation
Neo4j Plugin For Liquibase
  • Details
  • Documentation
Neosemantics
  • Getting Started
  • Documentation
Neo4j Helm
  • Details
  • Documentation
NeoDash
  • Details
  • Documentation
neomodel
  • Details
  • Documentation
Get Help
GraphAcademy
  • Free, Self Paced Training
  • Certification
Community Forum
Discord Chat
Knowledge Base
Neo4j Developer Blog
Neo4j Videos
Get Started Free
Search
Product Version
    • Introduction
      • Overview
      • Cypher and Neo4j
      • Cypher and Aura
    • Queries
      • Core concepts
      • Basic queries
      • Cypher expressions
      • Conditional expressions (CASE)
    • Clauses
      • Clause composition
      • MATCH
      • OPTIONAL MATCH
      • RETURN
      • WITH
      • UNWIND
      • WHERE
      • ORDER BY
      • SKIP
      • LIMIT
      • CREATE
      • DELETE
      • SET
      • REMOVE
      • FOREACH
      • MERGE
      • CALL procedure
      • UNION
      • USE
      • LOAD CSV
      • SHOW FUNCTIONS
      • SHOW PROCEDURES
      • SHOW SETTINGS
      • SHOW TRANSACTIONS
      • TERMINATE TRANSACTIONS
    • Subqueries
      • CALL subqueries
      • CALL subqueries in transactions
      • EXISTS subqueries
      • COUNT subqueries
      • COLLECT subqueries
    • Patterns
      • Concepts
      • Primer
      • Syntax and semantics
    • Values and types
      • Property, structural, and constructed values
      • Temporal values
      • Spatial values
      • Working with null
      • Lists
      • Maps
      • Casting data values
      • Type predicate expressions
    • Functions
      • Predicate functions
      • Scalar functions
      • Aggregating functions
      • List functions
      • Mathematical functions - numeric
      • Mathematical functions - logarithmic
      • Mathematical functions - trigonometric
      • String functions
      • Temporal functions - instant types
      • Temporal functions - duration
      • Spatial functions
      • LOAD CSV functions
      • Graph functions
      • Database functions
      • User-defined functions
    • Indexes for search performance
    • Full-text search index
    • Vector search index
    • Constraints
      • Syntax
      • Examples
    • Query tuning
      • Cypher query options
      • Profile a query
      • The use of indexes
      • Basic query tuning example
      • Advanced query tuning example
      • Planner hints and the USING keyword
    • Execution plans
      • Database hits
      • Execution plan operators
      • Execution plan operators in detail
      • Shortest path planning
    • Query caches
      • Unifying query caches
    • Administration
      • Database management
      • Database alias management
      • Server management
      • Access control
        • Managing users
        • Managing roles
        • Managing privileges
        • Built-in roles and privileges
        • Read privileges
        • Write privileges
        • Database administration
        • DBMS administration
        • Limitations
        • Immutable privileges
    • Syntax
      • Parsing
      • Naming rules and recommendations
      • Variables
      • Reserved keywords
      • Parameters
      • Operators
      • Comments
    • Deprecations, additions, and compatibility
    • Glossary of keywords
    • Appendix
      • Cypher styleguide
  • Cypher Manual
  • Syntax
Edit this Page

Syntax

Cypher® follows a several syntactical rules and recommendations that are important to know when constructing queries. Further information can be found in the following sections:

  • Parsing

  • Naming rules and recommendations

  • Variables

  • Reserved keywords

  • Parameters

  • Operators

  • Comments

Immutable privileges Parsing

Was this page helpful?

26 October 2023

NODES 23

Join us for the biggest graph community conference dedicated to learning how to integrate graph technologies into ML and dev projects.

Save your spot

© 2023 Neo4j, Inc.
Terms | Privacy | Sitemap

Neo4j®, Neo Technology®, Cypher®, Neo4j® Bloom™ and Neo4j® Aura™ are registered trademarks of Neo4j, Inc. All other marks are owned by their respective companies.

Contact Us →

US: 1-855-636-4532
Sweden +46 171 480 113
UK: +44 20 3868 3223
France: +33 (0) 1 88 46 13 20

Learn

  • Sandbox
  • Neo4j Community Site
  • Neo4j Developer Blog
  • Neo4j Videos
  • GraphAcademy
  • Neo4j Labs

Social

  • Twitter
  • Meetups
  • Github
  • Stack Overflow
  • Want to Speak?