Cypher

pattern

A graph structure written in Cypher, such as a node joined to another node by a relationship.

Also written: patterns

Example

A pattern three nodes wide.

cypher
MATCH path = (a:Person)-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(d:Person)
RETURN path

The pattern is (a:Person)-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(d:Person). Two (:Person) nodes and one (:Movie), joined by an [:ACTED_IN] relationship and a [:DIRECTED] one, each drawn pointing the way it runs. The same pattern can be written into MERGE or CREATE as readily as into MATCH.

Lessons that use this term

The lesson and course links below open in a new tab.

171 lessons use this term. The 40 with the highest term density are listed here.

Modeling and Importing Data into Neo4j Workshop15 mentions

  • Cypher Patterns QuizBuilding Your Graphyour understanding of Cypher patterns before moving1 mention
  • Querying relationshipsModeling Relationshipspattern here accesses the data store directly to find a count of the number of PLACED relationships, which is fast and2 mentions

Using Neo4j with Java1 mention

  • Create a Driver InstanceThe Driveryour understanding of the driver instantiation pattern covered in the previous1 mention

Cypher Aggregations12 mentions

  • Using Pattern ComprehensionUnderstanding Aggregation in Cyphercomprehension in Cypher enables you to create a list based upon values obtained during a10 mentions
  • Using Pattern ComprehensionUnderstanding Aggregation in Cypheras a starting point, rewrite the above query to use pattern1 mention

Neo4j Fundamentals31 mentions

  • Pattern MatchingQuerying Graphsthis lesson, you will explore how you match data with patterns16 mentions
  • Creating GraphsQuerying Graphshave used the MATCH clause to find patterns and read data from8 mentions
  • Graphs Are EverywhereGraph Thinkingthese relationships reveals patterns that drive personalized5 mentions

Introduction to Graph Databases Workshop25 mentions

  • Pattern MatchingGraph Databasesis a declarative query language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and12 mentions
  • Creating GraphsGraph Databasescan use the MERGE clause to create a pattern in the7 mentions
  • Matching DataCypherfind data in Neo4j by matching patterns using6 mentions

Zero to Production Hands-On Workshop19 mentions

  • Pattern MatchingGraph Databasesis a declarative query language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and12 mentions
  • Creating GraphsGraph Databasescan use the MERGE clause to create a pattern in the7 mentions

Intermediate Cypher Queries42 mentions

  • Testing PatternsFiltering Queriesthe query to test for the existence of a pattern where "Rob Reiner" acted in a1 mention
  • Multiple MATCH ClausesFiltering Queriesalternative to using multiple MATCH clauses is to specify multiple patterns10 mentions
  • Query Patterns and PerformanceFiltering Queriespattern is a combination of nodes and relationships that is used to traverse the graph at8 mentions
  • Aggregating DataWorking with Cypher Dataaggregate in a Cypher statement, this means that the query must process all patterns in the MATCH clause to complete the aggregation to either return results or perform the next part of the11 mentions

GraphRAG Hackathon17 mentions

  • Querying with CypherIntroduction to GraphRAGuses ASCII-art syntax to describe graph patterns, so queries read like the data they7 mentions

Neo4j & GenerativeAI Fundamentals11 mentions

  • What is Generative AIGenerative AIprocess of Generative AI, where a model is trained on a large dataset, learns patterns, and generates new content based on those6 mentions

Analyze Graph Data with Python19 mentions

Full-Text Search in Neo4j9 mentions

  • Search OperatorsFull-Text SearchPattern | Matches | |---|---| | matr | Tokens starting with "matr" (prefix match) | | rix | Tokens ending with "rix"5 mentions

Building Knowledge Graphs with LLMs7 mentions

  • Customize the schemaLLM Graph Builderschema is a set of graph patterns of node labels and relationship types ((node)-[RELATIONSHIP]->(node)), you want to identify within the3 mentions

Building GraphRAG TypeScript MCP tools13 mentions

  • Create a Movie ResourceBuilding Database-Connected FeaturesAdd a movie resource with a dynamic URI pattern using4 mentions
  • Shared State and LoggingBuilding Database-Connected Featureslet's explore practical patterns for accessing shared state and providing feedback during tool5 mentions

Neo4j and Generative AI Workshop11 mentions

  • Define a schemaKnowledge Graph Constructiondefine a schema by expressing the desired nodes, relationships, or patterns you want to extract from the text, for6 mentions

Graph Data Science in Practice37 mentions

  • Building Fraud CommunitiesCommunity Detection for Fraudbetween runs Density-based: Groups by connection density, not by fraud patterns No semantic awareness: A fraudster and their victim might land in the same16 mentions

Aura In Production47 mentions

  • Security LogsLogs and Query OptimizationThis view displays the count, time range, and users involved for each event pattern6 mentions
  • Checkpoint and Replan EventsMonitoring Database Healthsuggests an opportunity to review storage performance or optimize your write patterns7 mentions

Constructing Knowledge Graphs with Neo4j GraphRAG for Python5 mentions

  • Define a schemaKnowledge Graph Pipelinedefine a schema by expressing the desired nodes, relationships, or patterns you want to extract from the5 mentions

Get started with Graph Data Science61 mentions

Building GraphRAG Python MCP tools8 mentions

  • Create a Movie ResourceBuilding Database-Connected FeaturesAdd a movie resource with a dynamic URI pattern3 mentions

Cypher Fundamentals16 mentions

  • Introduction to CypherReading Data from Neo4jas we would draw circles and arrows on a whiteboard, we write out the pattern in7 mentions
  • Merge ProcessingWriting Data to Neo4joperations work by first trying to find a pattern in the3 mentions
  • Finding RelationshipsReading Data from Neo4jWe can extend the pattern in the MATCH clause to traverse through all relationships with a type of ACTED_IN to any2 mentions

Working with Dates and Durations5 mentions

AuraDB Fundamentals12 mentions

  • Query toolToolsquery pattern (find all movies for an actor) is the first step in recommendation9 mentions

All glossary terms