I have a bytea field in a postgresql database. In my SQLAlchemy model it is defined as the following.
checksum_sha256 = Column(LargeBinary, nullable=False, unique=True)
When I query for this in graphiQL the server side throw the error.
TypeError: Object of type 'bytes' is not JSON serializable
This is a pretty obvious solution as it can't serialize the data. Is there any way to handle this appropriately?