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

# sourceEntries

> Lists the entries of one data source, with typed property values, filtering, sorting and forward paging.



**query** `sourceEntries(after: String, first: Int, language: String, sort: [SortInput!], sourceId: String!, where: Predicate): SourceEntriesConnection`

## Arguments

**`after`**: `String`

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

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`language`**: `String`

Language code (e.g. `en`) that localized properties use in `where`, `sort` and facets. Required when any of them uses a localized property; there's no fallback language. Property values still return every stored language.

---

**`sort`**: `[SortInput!]`

Sort keys, applied in order: a source property id, `id`, `@createdAt` or `@updatedAt`. At most 16 keys, each once (case-insensitive), with `id` only as the last key. Null or empty sorts by entry id ascending, and entry id ascending breaks ties. Missing values sort last.

---

**`sourceId`**: `String!` (required)

Raw id of the data source (e.g. `products`), not the global `DataSource.id`.

---

**`where`**: `Predicate`

Filters the source entries, as a `Predicate` over source properties; `segment`, `relation` and `lifecycle` aren't supported. Null returns every entry of the source.

## Returns

`SourceEntriesConnection`

**`edges`**: `[SourceEntriesEdge!]`

A list of edges.

---

**`facet`**: `FacetConnection`

The distinct values of one property across every entry that matches the connection's `where`, each with how many entries have it, with forward paging.

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `contains`: `String` — Keeps only the values that contain this literal text. Text and list properties only.
- `exclude`: `[String!]` — Values to leave out before counting and paging, matched exactly and case-sensitively. Text and list properties only.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `ignoreCase`: `Boolean!` = false — Whether `contains` ignores case. Default false. Values that differ only in case stay separate.
- `property`: `String!` — Id of the property whose values are counted: a card property for card entries, a source property for source entries. A localized property uses the connection's `language`.
- `sort`: `FacetSortInput` — What the values are sorted by. Null sorts by `COUNT` descending, ties by value ascending.

---

**`nodes`**: `[SourceEntry]`

A flattened list of the nodes.

---

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

Information to aid in pagination.

---

**`totalCount`**: `Long!`

## Examples

```graphql Query
query SourceEntries($sourceId: String!) {
  sourceEntries(sourceId: $sourceId) {
    edges {
      cursor
      node {
        createdAt
        entryId
        id
        properties {
          __typename
        }
        source {
          __typename
        }
        sourceId
      }
    }
    nodes {
      createdAt
      entryId
      id
      properties {
        id
        updatedAt
        value {
          __typename
          ... on TextValue {
            __typename
          }
        }
      }
      source {
        cardDefinitions {
          __typename
        }
        createdAt
        dataProviders {
          __typename
        }
        deletedAt
        description
        entries {
          __typename
        }
      }
      sourceId
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    totalCount
  }
}
```

```json Variables
{
  "sourceId": "string"
}
```

```json Response
{
  "data": {
    "sourceEntries": {
      "edges": [
        {
          "cursor": "string",
          "node": {
            "createdAt": "value",
            "entryId": "string",
            "id": "id",
            "properties": [
              {
                "__typename": "Property"
              }
            ],
            "source": {
              "__typename": "DataSource"
            },
            "sourceId": "string"
          }
        }
      ],
      "nodes": [
        {
          "createdAt": "value",
          "entryId": "string",
          "id": "id",
          "properties": [
            {
              "id": "string",
              "updatedAt": "value",
              "value": {
                "__typename": "TextValue"
              }
            }
          ],
          "source": {
            "cardDefinitions": {
              "__typename": "CardDefinitionsConnection"
            },
            "createdAt": "value",
            "dataProviders": {
              "__typename": "DataProvidersConnection"
            },
            "deletedAt": "value",
            "description": "string",
            "entries": {
              "__typename": "SourceEntriesConnection"
            }
          },
          "sourceId": "string"
        }
      ],
      "pageInfo": {
        "endCursor": "string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string"
      },
      "totalCount": "value"
    }
  }
}
```


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