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

caliban.federation.v2x.FederationDirectivesV2_8.scala Maven / Gradle / Ivy

The newest version!
package caliban.federation.v2x

import caliban.Value.StringValue
import caliban.parsing.adt.Directive
import caliban.schema.Annotations.GQLDirective

trait FederationDirectivesV2_8 extends FederationDirectivesV2_6 {

  def Context(context: String) = Directive("context", Map("context" -> StringValue(context)))

  case class GQLContext(context: String) extends GQLDirective(Context(context))

  def FromContext(context: String) = Directive("fromContext", Map("context" -> StringValue(context)))

  case class GQLFromContext(context: String) extends GQLDirective(FromContext(context))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy