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,
],
],
This is documentation for zf-doctrine-graphql. If you find this useful please add your ★ star to the project.
Authored by API Skeletons. All rights reserved.