GraphQL query of resource stops working after upsert of it
This seems a little bizarre.. I have this in my seeds.exs:
First time that this runs in an empty database, it will create the row. After this, I can query that users with GraphQL without any problem.
But, if afterwards I run my seeds.exs file again, it will run the above code again and update that row in the database.
After that, if I try to query from GraphQL with
I don't get why, but when the update runs, somehow it generates an invalid binary for these specific fields
First time that this runs in an empty database, it will create the row. After this, I can query that users with GraphQL without any problem.
But, if afterwards I run my seeds.exs file again, it will run the above code again and update that row in the database.
After that, if I try to query from GraphQL with
first_name, surname or phone_number which are stored as encrypted data, I get:I don't get why, but when the update runs, somehow it generates an invalid binary for these specific fields
