backend/__tests__/workspace.gql
2025-05-14 21:45:16 +02:00

67 lines
1.6 KiB
GraphQL

query workspacesSearchMany {
workspacesSearchMany(
workspaceType: open
priceMin: 5
priceMax: 15
dateFrom: "2020-09-25T15:58:40.803+0000"
dateTo: "2020-12-20T15:58:40.803+0000"
hoursFrom: "08:00"
hoursTo: "12:00"
) {
_id
title {
en
}
}
}
query workspaceGetOne {
workspacesGetOne(id: "5061682a-11df-48a8-9894-9ebc577c63d5") {
_id
title {
en
}
}
}
query workspacesGetMine {
workspacesGetMine {
_id
title {
en
}
}
}
mutation workspacesAddOne {
workspacesAddOne(
input: {
place: {
placeId: "ChIJrZYyJf_Rw0cR8I227YjcDEQ"
loc: { type: "Point", coordinates: [4.3879295, 50.6819832] }
formattedAddress: "Avenue de la Paix 36, 1420 Braine-l'Alleud, Belgium"
}
workspaceType: open
pricingPerHour: 25
currency: eur
maxCapacity: 4
minStay: 1
maxStay: 2
title: { fr: "Le rouge petillant", en: "The Red Velvet" }
availability: {
dateFrom: "2020-09-24T15:58:40.803+0000"
dateTo: "2020-12-24T15:58:40.803+0000"
weekend: true
hours: [{ from: "08:00", to: "20:00" }]
exceptions: [{ dateFrom: "2020-10-24T15:58:40.803+0000", dateTo: "2020-10-31T15:58:40.803+0000" }]
}
equipmentIds: []
featureIds: []
}
) {
_id
title {
en
}
}
}