Casting Binary from Ash.Type.Binary to GraphQL type

Hello, I Have field with type :binary in my resource user which just represents a token generate using :crypto but I get this error Could not determine graphql field type for Ash.Type.Binary any ideas on how to solve this?
2 Replies
ZachDaniel
ZachDaniel3y ago
Does absinthe have a binary type? Or would you like to do something like base64 encode the value before rendering?
edwinofdawn
edwinofdawnOP3y ago
I just fixed the issue, so absinthe does not have a binary type hence the problem. but in Elixir all binaries are just bitstrings so I can represent the token as binaries in my data layer and bit_strings(: string) in my resources and that bypasses my initial problem.

Did you find this page helpful?