Skip to main content

Arguments

after : String
before : String
electricityOnly : Boolean

If it should only return addresses from the ECOES EES data source.

first : Int
last : Int
postcode : String! required

The postcode to search for.

Returns

AddressUPRNTypeConnection

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

Allowed Viewers

Customer Partner User Third party

Query Complexity

6

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 AddressUprns( $after: String, $before: String, $electricityOnly: Boolean, $first: Int, $last: Int, $postcode: String! ) { addressUprns( after: $after, before: $before, electricityOnly: $electricityOnly, first: $first, last: $last, postcode: $postcode ) { edgeCount edges { ...AddressUPRNTypeEdgeFragment } pageInfo { ...PageInfoFragment } totalCount } }

Variables

{ "after": "YXJyYXljb25uZWN0aW9uOjEw=", "before": "YXJyYXljb25uZWN0aW9uOjEw=", "electricityOnly": true, "first": 10, "last": 10, "postcode": "green-even-worker-training-pressure" }

Response

{ "data": { "addressUprns": { "edgeCount": 61, "edges": [AddressUPRNTypeEdge], "pageInfo": PageInfo, "totalCount": 90 } } }