mutation updateConfig(
  $tempAndFansInput: TempAndFansIn!
  $group_id: ID!
  $pools: [PoolConfigIn!]!
  $apply: Boolean!
) {
  bosminer {
    config {
      updateGroups(groups: { id: $group_id, pools: $pools }) {
        ... on AttributeError {
          __typename
          message
        }
        ... on GroupListError {
          message
        }
        ... on GroupList {
          __typename
          groups {
            id
            pools {
              id
            }
          }
        }
      }
      updateTempAndFans(apply: $apply, input: $tempAndFansInput) {
        ... on TempAndFansOut {
          __typename
        }
        ... on TempAndFansError {
          hotTemp
          speed
          targetTemp
          minFans
          message
          dangerousTemp
        }
        ... on AttributeError {
          __typename
          message
        }
      }
    }
  }
}
