> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# dataSources

> Lists the tenant's sources, archived ones included. Filter `deletedAt: { eq: null }` for live sources.



**query** `dataSources(after: String, before: String, first: Int, last: Int, order: [DataSourceSortInput!], where: DataSourceFilterInput): DataSourcesConnection`

## Arguments

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`order`**: `[DataSourceSortInput!]`

---

**`where`**: `DataSourceFilterInput`

## Returns

`DataSourcesConnection`

**`edges`**: `[DataSourcesEdge!]`

A list of edges.

---

**`nodes`**: `[DataSource!]`

A flattened list of the nodes.

---

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query DataSources {
  dataSources {
    edges {
      cursor
      node {
        cardDefinitions {
          __typename
        }
        createdAt
        dataProviders {
          __typename
        }
        deletedAt
        description
        entries {
          __typename
        }
      }
    }
    nodes {
      cardDefinitions {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      createdAt
      dataProviders {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      deletedAt
      description
      entries {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "dataSources": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "createdAt": "value",
            "dataProviders": {
              "__typename": "DataProvidersConnection"
            },
            "deletedAt": "value",
            "description": "string",
            "entries": {
              "__typename": "SourceEntriesConnection"
            }
          }
        }
      ],
      "nodes": [
        {
          "cardDefinitions": {
            "edges": [
              {
                "__typename": "CardDefinitionsEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "CardDefinition"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "createdAt": "value",
          "dataProviders": {
            "edges": [
              {
                "__typename": "DataProvidersEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "DataProvider"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "deletedAt": "value",
          "description": "string",
          "entries": {
            "edges": [
              {
                "__typename": "SourceEntriesEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "SourceEntry"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": "value"
          }
        }
      ],
      "pageInfo": {
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string"
      },
      "totalCount": 1
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.