I'm trying to insert emails that have been encrypted to cyphertext into a postgresql database from a graphql api written with golang's gqlgen library. The emails were inserting into the database just fine in plain text, but when I encrypt them to a cypher text string the graphql api rejects the mutation and returns the error "pg: Model(unsupported string)". This appears to be a postgresql error, but since the plain text emails and the ciphertexts are both strings, I'm not sure why postgres won't store the ciphertexts. Any help would be greatly appreciated.
I've tried searching google for documentation on the specific error, but was not able to find any results directly related to the error.