Skip to content

Feature request: support for custom json serialization #216

Closed
@markedwards

Description

@markedwards

It would be useful to be able to specify a custom json_dumps callable for the transport. Right now gql is hardcoded to use json.dumps from the standard library, and that has performance issues as well as poor serialization. It is common to have to provide Enum or datetime objects in variables, for instance, and without the ability to specify a custom callable its necessary to pre-process values which is inefficient and annoying to implement.

Any appetite for such a capability in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions