Skip to main content

Arguments

accountNumber : String! required

The account number.

after : String
before : String
dateFrom : Date

Start date for the readings.

dateTo : Date

End date for the readings.

first : Int
last : Int
pdr : String! required

The unique gas supply point identifier.

readingSources : [GasReadingSource]

The sources of the readings.

readingTypes : [GasReadingType]

The types of the readings.

Returns

GasMeterReadingConnectionTypeConnection!

This field is a connection type. Connections are used to implement cursor based pagination.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can submit meter readings

Query Complexity

2

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

query GasMeterReadings( $accountNumber: String!, $after: String, $before: String, $dateFrom: Date, $dateTo: Date, $first: Int, $last: Int, $pdr: String!, $readingSources: [GasReadingSource], $readingTypes: [GasReadingType] ) { gasMeterReadings( accountNumber: $accountNumber, after: $after, before: $before, dateFrom: $dateFrom, dateTo: $dateTo, first: $first, last: $last, pdr: $pdr, readingSources: $readingSources, readingTypes: $readingTypes ) { edgeCount edges { ...GasMeterReadingConnectionTypeEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "accountNumber": "A-D791CD46", "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "dateFrom": "1998-01-29", "dateTo": "1977-09-28", "first": 10, "last": 10, "pdr": "rest-well-yourself-technology-agreement", "readingSources": "AUTOMATICALLY_GENERATED_BY_KRAKEN", "readingTypes": "ACTUAL" }

Response

{ "data": { "gasMeterReadings": { "edgeCount": 77, "edges": [GasMeterReadingConnectionTypeEdge], "pageInfo": PageInfo, "totalCount": 30 } } }