All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lucuma.schemas.odb.TimingWindowSubquery.scala Maven / Gradle / Ivy

There is a newer version: 0.100.0
Show newest version
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause

package lucuma.schemas.odb

import clue.GraphQLSubquery
import lucuma.core.model.TimingWindow
import lucuma.schemas.ObservationDB
import lucuma.schemas.decoders.given

object TimingWindowSubquery
    extends GraphQLSubquery.Typed[ObservationDB, TimingWindow]("TimingWindow"):
  override val subquery: String = s"""
        {
          inclusion
          startUtc
          end {
            ... on TimingWindowEndAt {
              atUtc
            }
            ... on TimingWindowEndAfter {
              after {
                milliseconds
              }         
              repeat {
                period {
                  milliseconds
                }
                times
              }
            }
          }
        }
      """




© 2015 - 2024 Weber Informatics LLC | Privacy Policy