API Reference
Scalars
Roles
Common objects
Slots
Projects
Services
Bookings
Spaces
Locations
Assets
Team
Reviews
Reminders
Webhooks
Denylist
Schema
JS SDK
Timerise © 2022
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!
}
Field name | Value type | Non-null | Description |
---|---|---|---|
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]
Field name | Value type | Required | Description |
---|---|---|---|
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
Field name | Value type | Required | Description |
---|---|---|---|
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
Field name | Value type | Required | Description |
---|---|---|---|
reviewId | ID | true | A globally-unique identifier. |
Minimal role required:
ADMIN
/ APIADMIN