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

caliban.schema.AnnotationsVersionSpecific.scala Maven / Gradle / Ivy

The newest version!
package caliban.schema

import caliban.parsing.adt.Directive

import scala.annotation.StaticAnnotation

trait AnnotationsVersionSpecific {

  /**
   * Annotation used to provide directives to a schema type
   */
  class GQLDirective(val directive: Directive) extends StaticAnnotation

  object GQLDirective {
    def unapply(annotation: GQLDirective): Option[Directive] =
      Some(annotation.directive)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy