Reviews

Reviews overview

Reviews are users' feedback about the services they used.

Object types

Review

type Review {
	projectId: ID!
	serviceId: ID!
	bookingId: ID!
	reviewId: ID!
	rate: NonNegativeInt!
	comment: NonEmptyString
	createdAt: DateTime!
	updatedAt: DateTime!
}

Review fields

Field nameValue typeNon-nullDescription
projectId
ID
true
A globally-unique identifier.
serviceId
ID
true
bookingId
ID
true
reviewId
ID
true
rate
NonNegativeInt
true
comment
NonEmptyString
false
createdAt
DateTime
true
The date and time when a review was created.
updatedAt
DateTime
true
The date and time when a review was updated.

Queries

reviews

reviews(
	serviceId: ID!
	limit: NonNegativeInt
	cursor: ID
): [Review]

reviews arguments

Field nameValue typeRequiredDescription
serviceId
ID
true
A globally-unique identifier.
limit
NonNegativeInt
false
cursor
ID
false
🔑
Minimal role required: USER

Mutations

reviewCreate

Creates a review.

reviewCreate(
	bookingId: ID!
	rate: NonNegativeInt!
	comment: NonEmptyString
): Review

reviewCreate arguments

Field nameValue typeRequiredDescription
bookingId
ID
true
A globally-unique identifier.
rate
NonNegativeInt
true
comment
NonEmptyString
false
🔑
Minimal role required: USER

reviewDelete

Deletes a review.

reviewDelete(
	reviewId: ID!
): String

reviewDelete arguments

Field nameValue typeRequiredDescription
reviewId
ID
true
A globally-unique identifier.
🔑
Minimal role required: ADMIN / APIADMIN