Class AdaptToHelper
java.lang.Object
io.smallrye.graphql.schema.helper.AdaptToHelper
Helping with mapping of scalars
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Method Summary
Modifier and TypeMethodDescriptiongetAdaptTo(Field field, Annotations annotations) Get the adaptTo for a certain field (if any)getAdaptTo(Reference r, Annotations annotations) Get the adapt to for a certain reference.static booleanshouldCreateTypeInSchema(Annotations annotations)
-
Method Details
-
shouldCreateTypeInSchema
-
getAdaptTo
Get the adaptTo for a certain field (if any)- Parameters:
field-annotations- the annotations- Returns:
- Potentially an AdaptTo model
-
getAdaptTo
Get the adapt to for a certain reference.- Parameters:
r-annotations- the annotations- Returns:
- Potentially a AdaptTo model
-