electricityMeterReadings
Fetch electricity 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
Only fetch meter readings made since this date
Only fetch meter readings made until this date
Returns
ElectricityMeterReadingConnectionTypeConnectionThis field is a connection type. Connections are used to implement cursor based pagination.
Examples
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 ElectricityMeterReadings(
$accountNumber: String!,
$after: String,
$before: String,
$first: Int,
$last: Int,
$meterId: ID!,
$readFrom: DateTime,
$readingOrigins: [ReadingOrigin],
$readTo: DateTime,
$typesOfRead: [TypeOfRead]
) {
electricityMeterReadings(
accountNumber: $accountNumber,
after: $after,
before: $before,
first: $first,
last: $last,
meterId: $meterId,
readFrom: $readFrom,
readingOrigins: $readingOrigins,
readTo: $readTo,
typesOfRead: $typesOfRead
) {
edgeCount
edges {
...ElectricityMeterReadingConnectionTypeEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"accountNumber": "A-11CCCFB6",
"after": "YXJyYXljb25uZWN0aW9uOjEw=",
"before": "YXJyYXljb25uZWN0aW9uOjEw=",
"first": 10,
"last": 10,
"meterId": "76699541",
"readFrom": "2003-08-05T16:22:54.629554+00:00",
"readingOrigins": "CUSTOMER",
"readTo": "1971-12-11T14:41:03.969184+00:00",
"typesOfRead": "METER_INSTALLED"
}
Response
{
"data": {
"electricityMeterReadings": {
"edgeCount": 84,
"edges": [ElectricityMeterReadingConnectionTypeEdge],
"pageInfo": PageInfo,
"totalCount": 12
}
}
}