I hope you all are having a good Sunday. I am working on an application using Phoenix, Apollo, graphql and react. One of features in the app is text search. I am using postgresql ‘a full text search. It is working fine in the query to pull data. I want to use to_tsvector when inserting a new record in the table.
Currently I am updating the search tokens column using a database trigger. I want to avoid using database triggers.
Is there any example how to use to_tsvector in a changeset?