Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Getting Started with the Graph Query Language (GQL)

You're reading from   Getting Started with the Graph Query Language (GQL) A complete guide to designing, querying, and managing graph databases with GQL

Arrow left icon
Product type Paperback
Published in Aug 2025
Publisher Packt
ISBN-13 9781836204015
Length 392 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Ricky Sun Ricky Sun
Author Profile Icon Ricky Sun
Ricky Sun
Jason Zhang Jason Zhang
Author Profile Icon Jason Zhang
Jason Zhang
Yuri Simione Yuri Simione
Author Profile Icon Yuri Simione
Yuri Simione
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Evolution Towards Graph Databases 2. Key Concepts of GQL FREE CHAPTER 3. Getting Started with GQL 4. GQL Basics 5. Exploring Expressions and Operators 6. Working With GQL Functions 7. Delve into Advanced Clauses 8. Configuring Sessions 9. Graph Transactions 10. Conformance to the GQL Standard 11. Beyond GQL 12. A Case Study – Anti-Fraud 13. The Evolving Landscape of GQL 14. Glossary and Resources 15. Other Books You May Enjoy
16. Index

Graph patterns

The graph pattern describes a particular structure of nodes and edges, and their labels and properties. The graph pattern is mainly used for retrieving nodes, edges, paths, and subgraphs within a graph that conforms to it.

Figure 2.9: A MATCH statement with patterns

Figure 2.9: A MATCH statement with patterns

This example shows a path pattern composed of two node patterns and one edge pattern: (a) and (b) are node patterns to match the nodes and -[:Follows]-> is an edge pattern to match the edges in the paths.

The details of patterns will be discussed in later chapters of this book.

Element patterns

Element patterns are the basic components of a graph pattern and consist of node patterns and edge patterns:

  • A node pattern specifies a node to be matched in the graph and is syntactically represented by a pair of parentheses
  • An edge pattern specifies an edge to be matched and can be expressed either as a full edge pattern or as an abbreviated form, depending on the inclusion...
You have been reading a chapter from
Getting Started with the Graph Query Language (GQL)
Published in: Aug 2025
Publisher: Packt
ISBN-13: 9781836204015
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon