---
id: "google-spanner-graph"
type: "component"
kind: "graph-database"
provider: "gcp"
category: "data"
docs: "https://cloud.google.com/spanner/docs/graph/overview"
url: "https://localhost:3000/catalogue/components/google-spanner-graph"
---

# Spanner Graph

Property graphs queried with ISO GQL over Spanner tables.

| | |
|---|---|
| Provider | [gcp](https://localhost:3000/catalogue?provider=gcp) |
| Kind | [Graph database](https://localhost:3000/catalogue/kinds/graph-database) |
| Category | Data |
| Official docs | [https://cloud.google.com/spanner/docs/graph/overview](https://cloud.google.com/spanner/docs/graph/overview) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `backedByRelationalTables` | boolean | — | no | true | inherited |
| `crossRegionConsistency` (advanced) | enum | `none`, `single-leader`, `last-writer-wins-hlc` | no | "none" | inherited |
| `inMemory` | boolean | — | no | false | **false** |
| `managed` | boolean | — | no | false | **true** |
| `masterPerShard` (advanced) | boolean | — | no | false | inherited |
| `queryLanguage` | enum | `gql`, `googlesql` | no | "gql" | inherited |
| `rebuildCadenceHours` (advanced) | integer | — | no | — | inherited |
| `spannerEdition` | enum | `enterprise`, `enterprise-plus` | no | "enterprise" | inherited |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 21

- [Graph Database](https://localhost:3000/catalogue/components/alibaba-graph-database.md) `alibaba-graph-database` — alibabacloud
- [Amazon Cloud Directory](https://localhost:3000/catalogue/components/aws-cloud-directory.md) `aws-cloud-directory` — aws
- [AWS IoT TwinMaker](https://localhost:3000/catalogue/components/aws-iot-twinmaker.md) `aws-iot-twinmaker` — aws
- [Amazon Neptune Analytics](https://localhost:3000/catalogue/components/aws-neptune-analytics.md) `aws-neptune-analytics` — aws
- [Amazon Neptune](https://localhost:3000/catalogue/components/neptune.md) `neptune` — aws
- [Azure Digital Twins](https://localhost:3000/catalogue/components/azure-digital-twins.md) `azure-digital-twins` — azure
- [ArangoDB](https://localhost:3000/catalogue/components/arangodb.md) `arangodb` — default
- [Dgraph](https://localhost:3000/catalogue/components/dgraph.md) `dgraph` — default
- [Apache Jena Fuseki](https://localhost:3000/catalogue/components/fuseki.md) `fuseki` — default
- [Generic graph database](https://localhost:3000/catalogue/components/graph-database.md) `graph-database` — default
- [Graph store](https://localhost:3000/catalogue/components/graph-store.md) `graph-store` — default
- [Ontotext GraphDB](https://localhost:3000/catalogue/components/graphdb.md) `graphdb` — default
- [JanusGraph](https://localhost:3000/catalogue/components/janusgraph.md) `janusgraph` — default
- [Memgraph](https://localhost:3000/catalogue/components/memgraph.md) `memgraph` — default
- [NebulaGraph](https://localhost:3000/catalogue/components/nebulagraph.md) `nebulagraph` — default
- [Neo4j](https://localhost:3000/catalogue/components/neo4j.md) `neo4j` — default
- [Stardog](https://localhost:3000/catalogue/components/stardog.md) `stardog` — default
- [TAO](https://localhost:3000/catalogue/components/tao.md) `tao` — default
- [TigerGraph](https://localhost:3000/catalogue/components/tigergraph.md) `tigergraph` — default
- [OpenLink Virtuoso](https://localhost:3000/catalogue/components/virtuoso.md) `virtuoso` — default
- [Enterprise Knowledge Graph](https://localhost:3000/catalogue/components/google-enterprise-knowledge-graph.md) `google-enterprise-knowledge-graph` — gcp

## Use it in a design

```yaml
nodes:
  - { id: "google-spanner-graph", component: "google-spanner-graph" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Spanner Graph: property graphs mapped onto Spanner tables and queried with ISO GQL.
# "Spanner Graph overview" states the graph is declared over existing relational tables with
# no data migration, and that it requires the Enterprise or Enterprise Plus edition and the
# GoogleSQL dialect, inheriting Spanner's scalability, availability and consistency.
schemaVersion: "1"
type: "component"
id: "google-spanner-graph"
kind: "graph-database"
provider: "gcp"
docs: "https://cloud.google.com/spanner/docs/graph/overview"
defaults:
  inMemory: false
  managed: true
properties:
  queryLanguage:
    type: "enum"
    values: ["gql", "googlesql"]
    default: "gql"
  spannerEdition:
    type: "enum"
    values: ["enterprise", "enterprise-plus"]
    default: "enterprise"
  backedByRelationalTables:
    type: "boolean"
    default: true
```

Human page: https://localhost:3000/catalogue/components/google-spanner-graph
