---
title: "List all graphs"
method: GET
path: "/_fabric/{fabric}/_api/graph"
tags: ["Graphs"]
---

# List all graphs

`GET /_fabric/{fabric}/_api/graph`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/graph/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists all graphs stored in this GeoFabric.

## Path parameters

- `fabric` string, string, required

## Response `200`

Successfully fetched graphs.

- GraphListHttpExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean, required: Flag if there is an error in response. *False* for this response.
  - `graphs` GraphList[]
    - `graph` GraphRepresentation: The information about the newly created graph.
      - `_id` string: The internal id value of this graph.
      - `_key` string: The key of this graph.
      - `_rev` string: The revision of this graph. Can be used to make sure to not override concurrent modifications to this graph.
      - `edgedefinitions` GraphEdgeDefinition[]: An array of definitions for the relations of the graph.
        - `collection` string: Name of the edge collection, where the edge are stored in.
        - `from` string[]: List of vertex collection names. Edges in collection can only be inserted if their _from is in any of the collections here.
        - `to` string[]: List of vertex collection names. Edges in collection can only be inserted if their _to is in any of the collections here.
      - `name` string: The name of the graph.
      - `orphanCollections` string[]: An array of additional vertex collections. Documents within these collections do not have edges within this graph.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
