Create a new station review

To improve the user experience of routes you can include reviews as described in query station reviews. To collect reviews and allow users to write one, you will need to use the following mutation.

Mutation

To be able to write a review you will need a stationId and carId. After that you can use various review arguments like rating, message and tags to collect the appropriate data. Keep in mind, the stationId and rating are both required when submitting a review.

Arguments

review ReviewAdd

Required

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 Car

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.