Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

Custom Mapping Types

Doctrine allows Custom Mapping Types

You must create a custom GraphQL type for the field for handling serialization, etc. See ZF\Doctrine\GraphQL\Type\DateTimeType for an example of a custom GraphQL type.

Add the new custom GraphQL type to your configuration:

'zf-doctrine-graphql-type' => [
    'invokables' => [
            => Types\GraphQL\DateTimeMicrosecondType::class,