public class ValueMapper
extends java.lang.Object
Constructor and Description |
---|
ValueMapper(ValueFormatter valueFormatter,
DataModelMapper dataModelMapper) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
map(MappingContext mappingContext,
graphql.language.Value<?> value,
graphql.language.Type<?> graphQLType) |
java.lang.String |
map(MappingContext mappingContext,
graphql.language.Value<?> value,
graphql.language.Type<?> graphQLType,
java.lang.String formatter)
Map GraphQL value of a given type according to a formatter
|
public ValueMapper(ValueFormatter valueFormatter, DataModelMapper dataModelMapper)
public java.lang.String map(MappingContext mappingContext, graphql.language.Value<?> value, graphql.language.Type<?> graphQLType)
public java.lang.String map(MappingContext mappingContext, graphql.language.Value<?> value, graphql.language.Type<?> graphQLType, java.lang.String formatter)
mappingContext
- Global mapping contextvalue
- GraphQL ValuegraphQLType
- GraphQL Typeformatter
- value formatter