예제 #1
0
 def mutate(self, graphene_info, sensor_selector):
     return start_sensor(graphene_info,
                         SensorSelector.from_graphql_input(sensor_selector))
예제 #2
0
 def resolve_sensorOrError(self, graphene_info, sensorSelector):
     return get_sensor_or_error(
         graphene_info, SensorSelector.from_graphql_input(sensorSelector))
예제 #3
0
 def mutate(self, graphene_info, sensor_selector, cursor=None):
     return set_sensor_cursor(
         graphene_info, SensorSelector.from_graphql_input(sensor_selector),
         cursor)