Skip to main content

DatetimeFilter

Filter by a datetime field.

All operators within a single filter are combined with AND, which makes it easy to build date range queries by combining gte and lte.

All datetime values must be in ISO 8601 format (e.g., "2025-01-15T00:00:00Z").

# Everything created in January 2025
{ "createdAt": { "gte": "2025-01-01T00:00:00Z", "lte": "2025-01-31T23:59:59Z" } }

# Everything after a specific date
{ "createdAt": { "gt": "2025-06-01T00:00:00Z" } }
input DatetimeFilter {
eq: DateTime
gt: DateTime
gte: DateTime
lt: DateTime
lte: DateTime
}

Fields

DatetimeFilter.eq ● DateTime scalar {#eq}

Return only results with a datetime exactly equal to this value.

DatetimeFilter.gt ● DateTime scalar {#gt}

Return only results with a datetime strictly after this value.

DatetimeFilter.gte ● DateTime scalar {#gte}

Return only results with a datetime on or after this value. Combine with lte for date ranges.

DatetimeFilter.lt ● DateTime scalar {#lt}

Return only results with a datetime strictly before this value.

DatetimeFilter.lte ● DateTime scalar {#lte}

Return only results with a datetime on or before this value. Combine with gte for date ranges.

Member Of

AuditLogsFilter input