Skip to main content

journeyPlansCount

Requires permission visits:journey-plan:manage.

Returns how many journey plans match the same range, rep and filter as journeyPlans, ignoring paging, for a pager. Requires permission to manage journey plans.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query JourneyPlansCount($dateFrom: DateTime!, $dateTo: DateTime!) {
journeyPlansCount(dateFrom: $dateFrom, dateTo: $dateTo)
}

Variables:

{
"dateFrom": "2025-01-15T00:00:00Z",
"dateTo": "2025-01-15T00:00:00Z"
}

Response:

{
"data": {
"journeyPlansCount": 0
}
}
journeyPlansCount(
dateFrom: DateTime!
dateTo: DateTime!
filter: JourneyPlanListFilterInput
salesRepId: ID
): Int!

Arguments​

journeyPlansCount.dateFrom ● DateTime! non-null scalar​

The first day of the range.

journeyPlansCount.dateTo ● DateTime! non-null scalar​

The last day of the range.

journeyPlansCount.filter ● JourneyPlanListFilterInput input​

Optional filters. The same ones as journeyPlans.

journeyPlansCount.salesRepId ● ID scalar​

The ID of the sales rep to count plans for. Omit it for every rep.

Type​

Int scalar​

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.