Skip to content

Unable to specify custom serializer context for GraphQL calls #1904

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions