gasMeterReadings
Fetch gas meter readings for a given account and meter
This field is a connection type. Connections are used to implement cursor based pagination.
This field requires the Authorization header to be set.
Arguments
Returns
GasMeterReadingConnectionTypeConnectionThis field is a connection type. Connections are used to implement cursor based pagination.
Possible Errors
Allowed Viewers
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query GasMeterReadings(
$accountNumber: String!,
$after: String,
$before: String,
$eventTypes: [MeterReadingEventType],
$first: Int,
$last: Int,
$meterId: String!,
$readFrom: DateTime,
$readTo: DateTime
) {
gasMeterReadings(
accountNumber: $accountNumber,
after: $after,
before: $before,
eventTypes: $eventTypes,
first: $first,
last: $last,
meterId: $meterId,
readFrom: $readFrom,
readTo: $readTo
) {
edgeCount
edges {
...GasMeterReadingConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-A9F3A5BB",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"eventTypes": "CUSTOMER",
"first": 10,
"last": 10,
"meterId": "55766175",
"readFrom": "2012-11-10T08:23:56.844126+00:00",
"readTo": "1976-11-15T14:37:48.505973+00:00"
}
Response
{
"data": {
"gasMeterReadings": {
"edgeCount": 75,
"edges": [GasMeterReadingConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 3
}
}
}