Skip to content

Instantly share code, notes, and snippets.

@jomicega
Last active October 21, 2019 15:47
Show Gist options
  • Save jomicega/fc627fa218b1a402956bf825c536d10c to your computer and use it in GitHub Desktop.
Save jomicega/fc627fa218b1a402956bf825c536d10c to your computer and use it in GitHub Desktop.
query($id:ID!){
getTemplateStation(id: $id){
devices {
...fragmentDevices
}
equipments {
...fragmentEquipments
}
rules {
...fragmentRule
}
operationModes {
...fragmentOperationMode
}
}
}
fragment fragmentRule on Rule {
name
notifications
validations {
variable {
name
}
value
operator
}
}
fragment fragmentDevices on Device {
name
configurator {
name
analogInputs {
quantity
prefix
}
analogOutputs {
quantity
prefix
}
digitalInputs {
quantity
prefix
}
digitalOutputs {
quantity
prefix
}
virtualInputs {
quantity
prefix
}
virtualOutputs {
quantity
prefix
}
}
}
fragment fragmentEquipments on Equipment {
name
variables {
name
parameter {
device {
name
}
usedBy {
name
}
}
sensor {
name
operation
}
}
}
fragment fragmentOperationMode on OperationMode {
base {
rules {
...fragmentRule
}
}
compound {
name
initDate
endDate
initHour
endHour
operationDays
rules {
...fragmentRule
}
}
maintenance {
initDate
endDate
initHour
endHour
operationDays
rules {
...fragmentRule
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment