Class AdaptToHelper

java.lang.Object
io.smallrye.graphql.schema.helper.AdaptToHelper

public class AdaptToHelper extends Object
Helping with mapping of scalars
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Method Details

    • shouldCreateTypeInSchema

      public static boolean shouldCreateTypeInSchema(Annotations annotations)
    • getAdaptTo

      public static Optional<AdaptTo> getAdaptTo(Field field, Annotations annotations)
      Get the adaptTo for a certain field (if any)
      Parameters:
      field -
      annotations - the annotations
      Returns:
      Potentially an AdaptTo model
    • getAdaptTo

      public static Optional<AdaptTo> getAdaptTo(Reference r, Annotations annotations)
      Get the adapt to for a certain reference.
      Parameters:
      r -
      annotations - the annotations
      Returns:
      Potentially a AdaptTo model