Query station reviews

Every station in your database can be accompanied by a user review. You can query for properties such as rating and message but also receive data about the EV that was used. Reviews are stored per station database and can't be used across different projects.

Query

To get the reviews of a specific station you will need to provide a stationId as an argument. Optionally you can use pagination for your query.

Arguments

stationId ID

Required

ID of the station.

size Int

Number of elements (count) to return.

Default • 10

page Int

Page number to return.

Default • 0

Other fields

id ID

ID of a review.

station Station

Station for which a review was provided.

user ReviewUser

User who added a review. If a review was added by an anonymous user, this will be null.

rating Int

Rating of a review.

message String

Message of a review.

locale String

Locale of a message.

ev Vehicle

Vehicle that was provided/selected by a user.

plugType ConnectorType

Plug type that was provided/selected by a user.

Show ConnectorType enum values

properties JSON

Optional object where you can store custom data you need in your application. This extends the current functionalities we offer.

tags ReviewTags

Boolean tags for a station review.

createdAt String

Date and time when a review was created.

updatedAt String

Date and time when a review was updated.

Response

A response can either contain a data or an errors object. The response header will always return 200 as a status code.

Data object

When successful, a data object will be returned with the requested fields. If there are no fields present the data object will return the operation name with the appropriate return type. If the operation was a query, this output will be an object of the schema’s query root type; if the operation was a mutation, this output will be an object of the schema’s mutation root type.

Error object

If unsuccessful, an errors object will be returned with more details in the extensions object. The error object can contain any of the following objects.