public class UnionDefinitionToDataModelMapper
extends java.lang.Object
Constructor and Description |
---|
UnionDefinitionToDataModelMapper(GraphQLTypeMapper graphQLTypeMapper,
DataModelMapper dataModelMapper) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
map(MappingContext mappingContext,
ExtendedUnionTypeDefinition definition)
Map union definition to a Freemarker data model
|
public UnionDefinitionToDataModelMapper(GraphQLTypeMapper graphQLTypeMapper, DataModelMapper dataModelMapper)
public java.util.Map<java.lang.String,java.lang.Object> map(MappingContext mappingContext, ExtendedUnionTypeDefinition definition)
mappingContext
- Global mapping contextdefinition
- Definition of union type including base definition and its extensions