Annotation Type CustomScalar


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Experimental("Mark a type as a custom scalar with the given name in the GraphQL schema.")
    public @interface CustomScalar
    Allows for definition of custom graphql scalars. Types with this annotation should extend one of CustomStringScalar, CustomIntScalar, or CustomFloatScalar. Additionally, the Type should provide a public single argument constructor taking the associated type(String, BigInteger, BigDecimal).
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value