Spanner Graph documentation
Spanner Graph unites purpose-built graph database capabilities with
Spanner, which offers industry-leading scalability,
availability, and consistency.
Spanner Graph supports a graph query interface compatible with the ISO GQL
(Graph Query Language) standards. It also supports interoperability between relational and graph
models and combines the well-established SQL capabilities with the expressiveness of graph pattern
matching from GQL. To learn more, see the
Spanner Graph overview.
Not sure what database option is right for you? Learn more about our
database services.
Training
Training and tutorials
Get started with the Spanner Graph codelab
In this Codelab, learn how to set up a Spanner Graph database using a pre-populated dataset, query the graph using GQL, and access both graph and relational data together by combining GQL and SQL.
Use case
Use cases
Spanner Graph reference for openCypher users
Learn the differences between Spanner Graph and openCypher.
Migration
OpenCypher
Apache
Code sample
Code Samples
Create database with a property graph
Create a Spanner database using a property graph.
Code sample
Code Samples
Insert graph data
Insert data into a Spanner Graph database.
Code sample
Code Samples
Query data in a graph
Query data in a Spanner Graph database.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Spanner Graph documentation\n===========================\n\n[Read product documentation](/spanner/docs/graph/overview)\nSpanner Graph unites purpose-built graph database capabilities with\n[Spanner](/spanner/docs), which offers industry-leading scalability,\navailability, and consistency.\n\n\nSpanner Graph supports a graph query interface compatible with the ISO GQL\n(Graph Query Language) standards. It also supports interoperability between relational and graph\nmodels and combines the well-established SQL capabilities with the expressiveness of graph pattern\nmatching from GQL. To learn more, see the\n[Spanner Graph overview](/spanner/docs/graph/overview).\n\n\nNot sure what database option is right for you? Learn more about our\n[database services](/products/databases).\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Spanner Graph overview](/spanner/docs/graph/overview)\n\n-\n\n [Set up and query Spanner Graph](/spanner/docs/graph/set-up)\n\n-\n\n [Spanner Graph schema overview](/spanner/docs/graph/schema-overview)\n\n-\n\n [Insert, update, or delete Spanner Graph data](/spanner/docs/graph/insert-update-delete-data)\n\n-\n\n [Spanner Graph queries overview](/spanner/docs/graph/queries-overview)\n\n-\n\n [Migrate to Spanner Graph](/spanner/docs/graph/migrate)\n\n-\n\n [Spanner Graph reference for openCypher users](/spanner/docs/graph/opencypher-reference)\n\n-\n\n [Troubleshoot Spanner Graph](/spanner/docs/graph/troubleshoot)\n\nfind_in_page\n\n### Reference\n\n-\n\n [Graph Query Language](/spanner/docs/reference/standard-sql/graph-intro)\n\n-\n\n [Schema statements](/spanner/docs/reference/standard-sql/graph-schema-statements)\n\n-\n\n [Query statements](/spanner/docs/reference/standard-sql/graph-query-statements)\n\n-\n\n [GQL within SQL](/spanner/docs/reference/standard-sql/graph-sql-queries)\n\n-\n\n [gcloud command-line tool](/sdk/gcloud/reference/spanner)\n\ninfo\n\n### Spanner resources\n\n-\n\n [Pricing](/spanner/pricing)\n\n-\n\n [Quotas and limits](/spanner/quotas)\n\n-\n\n [Release notes](/spanner/docs/release-notes)\n\n-\n\n [Get support](/spanner/docs/getting-support)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Get started with the Spanner Graph codelab\n\n\nIn this Codelab, learn how to set up a Spanner Graph database using a pre-populated dataset, query the graph using GQL, and access both graph and relational data together by combining GQL and SQL.\n\n\n[Learn more](https://codelabs.developers.google.com/codelabs/spanner-graph-getting-started) \nUse case \nUse cases\n\n### Spanner Graph reference for openCypher users\n\n\nLearn the differences between Spanner Graph and openCypher.\n\nMigration OpenCypher Apache\n\n\u003cbr /\u003e\n\n[Learn more](/spanner/docs/graph/opencypher-reference) \nCode sample \nCode Samples\n\n### Create database with a property graph\n\n\nCreate a Spanner database using a property graph.\n\n\n[Get started](/spanner/docs/samples/spanner-create-database-with-property-graph) \nCode sample \nCode Samples\n\n### Insert graph data\n\n\nInsert data into a Spanner Graph database.\n\n\n[Get started](/spanner/docs/samples/spanner-insert-graph-data) \nCode sample \nCode Samples\n\n### Query data in a graph\n\n\nQuery data in a Spanner Graph database.\n\n\n[Get started](/spanner/docs/samples/spanner-query-graph-data)"]]