graphql-over-http icon indicating copy to clipboard operation
graphql-over-http copied to clipboard

Research other serialization formats

Open sjparsons opened this issue 4 years ago • 3 comments

Research some other serialization formats and whether they have implications for content-types / status codes. For example, the usual case that we consider is GraphQL over HTTP with JSON as the serialization format. However, there are other serialization formats in use and this may give us insight as to what the constraints need to be support those in addition to JSON in GraphQL over HTTP.

sjparsons avatar Jul 01 '20 15:07 sjparsons

It would be awesome to start by researching a list of the possible protocols. From my point of view I have seen GraphQL with:

  • BSON (not much difference here)
  • gRPC (Google, Red Hat)
  • Thrift (Airbnb folks - backend)
  • Avro
  • MessagePack
  • OData/OpenAPI (Not protocol but graphql wrap those very often)

I would love to add some of the possible constraints that I have seen here as a separate comment over the time assuming that there is interest for those and this is what we looking for here :D

wtrocki avatar Aug 27 '20 15:08 wtrocki

We are using CBOR to support binary fields (with a custom Bytes scalar). CBOR has a media type entry. Like JSON, CBOR does not need a schema to be parsed so it's basically a drop in replacement (with a lot of additional great stuff like CDDL)

Erik1000 avatar Feb 27 '22 11:02 Erik1000

Hello, was there any progress on this research?

valgog avatar Jan 03 '23 10:01 valgog