34 lines
601 B
GraphQL
34 lines
601 B
GraphQL
fragment ServiceFields on Service {
|
|
documentId
|
|
name
|
|
active
|
|
duration
|
|
master {
|
|
...CustomerFields
|
|
}
|
|
}
|
|
|
|
query GetServices($filters: ServiceFiltersInput) {
|
|
services(filters: $filters, sort: "name:asc") {
|
|
...ServiceFields
|
|
}
|
|
}
|
|
|
|
query GetService($documentId: ID!) {
|
|
service(documentId: $documentId) {
|
|
...ServiceFields
|
|
}
|
|
}
|
|
|
|
mutation CreateService($data: ServiceInput!) {
|
|
createService(data: $data) {
|
|
...ServiceFields
|
|
}
|
|
}
|
|
|
|
mutation UpdateService($documentId: ID!, $data: ServiceInput!) {
|
|
updateService(documentId: $documentId, data: $data) {
|
|
...ServiceFields
|
|
}
|
|
}
|