Skip to content

Unable to specify custom serializer context for GraphQL calls #1904

Closed
@bwegrzyn

Description

@bwegrzyn

The context for GraphQL calls is hard coded instead of using a ContextBuilder service and is impossible to override.

It would be nice to be able to override it so we could set things such as default_constructor_arguments introduced in symfony/symfony#25493.

Currently, for REST calls we can decorate the api_platform.serializer.context_builder service to add custom context properties, but this is not possible for GraphQL calls.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions