11 lines
398 B
GraphQL
11 lines
398 B
GraphQL
mutation createBooking {
|
|
createOneBooking(input:{ressourceModel:workspaces,ressourceId:"718aa94e-f13d-4ee3-9610-c12c98750c08",dates:{startDate:"2020-11-01T23:15:17.044+0000",endDate:"2020-11-02T23:15:17.044+0000"},capacity:10}){_id,ownerId,owner{email}}
|
|
}
|
|
|
|
query bookingsGetMany {
|
|
bookingsGetMany{_id}
|
|
}
|
|
|
|
query bookingsGetOne {
|
|
bookingsGetOne(id:"2a3c6b3d-e8e5-4a4d-9c10-6e438ac22e10"){_id}
|
|
} |