> ## 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.

# dataProviders

> Lists the current tenant's data providers.



**query** `dataProviders(after: String, before: String, first: Int, last: Int, order: [DataProviderSortInput!], where: DataProviderFilterInput): DataProvidersConnection`

## 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`**: `[DataProviderSortInput!]`

---

**`where`**: `DataProviderFilterInput`

## Returns

`DataProvidersConnection`

**`edges`**: `[DataProvidersEdge!]`

A list of edges.

---

**`nodes`**: `[DataProvider!]`

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 DataProviders {
  dataProviders {
    edges {
      cursor
      node {
        accessToken {
          __typename
        }
        createdAt
        createdByUser
        dataSources {
          __typename
        }
        id
        isDeleted
      }
    }
    nodes {
      accessToken {
        expiresIn
        token
      }
      createdAt
      createdByUser
      dataSources {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      id
      isDeleted
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "dataProviders": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "accessToken": {
              "__typename": "AccessToken"
            },
            "createdAt": "value",
            "createdByUser": "value",
            "dataSources": {
              "__typename": "DataSourcesConnection"
            },
            "id": "id",
            "isDeleted": true
          }
        }
      ],
      "nodes": [
        {
          "accessToken": {
            "expiresIn": 1,
            "token": "string"
          },
          "createdAt": "value",
          "createdByUser": "value",
          "dataSources": {
            "edges": [
              {
                "__typename": "DataSourcesEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "DataSource"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "id": "id",
          "isDeleted": true
        }
      ],
      "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.