Closures

Query

closure — Returns RegisterClosure

No scope required

Arguments Type Description

id

ID!

The ID of the register closure to retrieve

Example Query
query GetClosure($id: ID!) {
    closure(id: $id) {
        id,
        movement,
        totalExpected,
        totalReceived,
        totalTransactions
    }
}

# Example variables
{
    "id": "<ID>"
}

Query

closures — Returns ConnectionType of RegisterClosure

No scope required

Sortable Fields

Fields from RegisterClosure that can be used to sort the connection items

  • openedAt
  • closedAt
Arguments Type Description

startTime

DateTime

Get any register closure that closed after this time (inclusive)

endTime

DateTime

Get any register closure that opened before this time (inclusive)

outlets

[ID]

Get any register closure that was closed at one of these outlets

registers

[ID]

Get any register closure that was closed on one of this registers

Example Query
query GetClosures($startTime: DateTime) {
    closures(startTime: $startTime) {
        edges {
            node {
                id,
                movement,
                totalExpected,
                totalReceived,
                totalTransactions
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "startTime": "<START_TIME>"
}