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' => [
        'datetime_microsecond' => Types\GraphQL\DateTimeMicrosecondType::class,
    ],
],

Note

Authored by API Skeletons. All rights reserved.