I’ve been trying to implement the from_date & to_date arguments in my queries, but I’m always getting the same error:
array:3 [
"status" => 400
"body" => "{"errors":[{"message":"Unknown argument \"to_date\" on field \"Board.updates\".","locations":[{"line":5,"column":42}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}},{"message":"Unknown argument \"from_date\" on field \"Board.updates\".","locations":[{"line":5,"column":56}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}"
"json" => array:1 [
"errors" => array:2 [
0 => array:3 [
"message" => "Unknown argument "to_date" on field "Board.updates"."
"locations" => array:1 [
0 => array:2 [
"line" => 5
"column" => 42
]
]
"extensions" => array:1 [
"code" => "GRAPHQL_VALIDATION_FAILED"
]
]
1 => array:3 [
"message" => "Unknown argument "from_date" on field "Board.updates"."
"locations" => array:1 [
0 => array:2 [
"line" => 5
"column" => 56
]
]
"extensions" => array:1 [
"code" => "GRAPHQL_VALIDATION_FAILED"
]
]
]
]
]
I am using the API version 2025-07 (as indicates the API reference website), but even trying on the API Playground I get the same error: "Unknown argument “to_date” on field “Board.updates”.
Have any of you tried successfully these new arguments?
This is the code I’m using in my PHP app:
$query = <<<'GRAPHQL'
query ($boardId: [ID!], $page: Int, $from: ISO8601DateTime, $to: ISO8601DateTime ) {
boards(ids: $boardId) {
id
name
updates(limit: 100, page: $page, to_date: $to, from_date: $from) {
id
text_body
created_at
creator {
id
name
}
item_id
}
}
}
GRAPHQL;