Files
wlan-cloud-ui/app/graphql/mutations.js
2020-06-18 17:52:21 -04:00

66 lines
1.2 KiB
JavaScript

import gql from 'graphql-tag';
export const CREATE_LOCATION = gql`
mutation CreateLocation(
$locationType: String!
$customerId: Int!
$parentId: Int!
$name: String!
) {
createLocation(
locationType: $locationType
customerId: $customerId
parentId: $parentId
name: $name
) {
locationType
customerId
parentId
name
}
}
`;
export const UPDATE_LOCATION = gql`
mutation UpdateLocation(
$id: Int!
$locationType: String!
$customerId: Int!
$parentId: Int!
$name: String!
$lastModifiedTimestamp: String
) {
updateLocation(
id: $id
locationType: $locationType
customerId: $customerId
parentId: $parentId
name: $name
lastModifiedTimestamp: $lastModifiedTimestamp
) {
id
locationType
customerId
parentId
name
lastModifiedTimestamp
}
}
`;
export const DELETE_LOCATION = gql`
mutation DeleteLocation($id: Int!) {
deleteLocation(id: $id) {
id
}
}
`;
export const UPDATE_EQUIPMENT_BULK = gql`
mutation UpdateEquipmentBulk($items: [EquipmentRrmUpdate]) {
updateEquipmentBulk(items: $items) {
success
}
}
`;