Skip to content

formHistories

Fetch paginated form histories collection

Arguments

patient_id · ID · The patient ID who owns the form
sourceable_id · ID · Source object ID
after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

FormHistoryPaginationConnection

Example

query formHistories(
$patient_id: ID
$sourceable_id: ID
$sourceable_type: FormHistorySourceable
$after: String
$before: String
$first: Int
$last: Int
) {
formHistories(
patient_id: $patient_id
sourceable_id: $sourceable_id
sourceable_type: $sourceable_type
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}