diff --git a/modules/schema/src/main/resources/lucuma/odb/graphql/OdbSchema.graphql b/modules/schema/src/main/resources/lucuma/odb/graphql/OdbSchema.graphql index a7fffd45c..34e53baf4 100644 --- a/modules/schema/src/main/resources/lucuma/odb/graphql/OdbSchema.graphql +++ b/modules/schema/src/main/resources/lucuma/odb/graphql/OdbSchema.graphql @@ -9830,11 +9830,6 @@ type ObservingMode { } type ObservingModeGroup { - """ - IDs of observations that use the same constraints - """ - observationIds: [ObservationId!]! - """ Observations associated with the common value """ @@ -9859,6 +9854,11 @@ type ObservingModeGroup { Commonly held value across the observations """ observingMode: ObservingMode + + """ + Link back to program. + """ + program: Program! } """ diff --git a/modules/service/src/main/scala/lucuma/odb/graphql/mapping/ObservingModeGroupMapping.scala b/modules/service/src/main/scala/lucuma/odb/graphql/mapping/ObservingModeGroupMapping.scala index 00096ed00..6b39d7d1b 100644 --- a/modules/service/src/main/scala/lucuma/odb/graphql/mapping/ObservingModeGroupMapping.scala +++ b/modules/service/src/main/scala/lucuma/odb/graphql/mapping/ObservingModeGroupMapping.scala @@ -7,8 +7,8 @@ package mapping import cats.syntax.option.* import cats.syntax.parallel.* import grackle.Predicate -import grackle.Predicate.and import grackle.Predicate.True +import grackle.Predicate.and import grackle.Query.* import grackle.QueryCompiler.Elab import grackle.TypeRef