Skip to content

CBOR as response serialization #791

Open
@grantperry

Description

@grantperry

I'm working in an embedded platform with low processing power and the need for very efficient data transfer, hence I have been using CBOR as the response serialization instead of JSON. This works very well and haven't come encountered any bugs. What I am trying to do now is use the more expansive Scalar type of CBOR instead of the default juniper Scalar.

I understand that I will likely need to impl ScalarValue on the CBOR Scalar, but this defeats the purpose of using CBOR for its more concise binary format, as I would have to convert all the concise scalar values to the primitive representation that GraphQL offers.

What I am trying to find out, is if there is a way of overriding the strict four type response of GraphQL? Big ask I know 😁

Look forward to your help!

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