dchester / epilogue

Create flexible REST endpoints and controllers from Sequelize models in your Express app
846 stars 116 forks source link

Support to check if Postgres array contains string? #212

Open semaja2 opened 7 years ago

semaja2 commented 7 years ago

I have a Postgres database where I am using an array data type to store information, however I would like the ability to query based on if an array contains a specific string

Sequelize fully supports the Sequelize.ARRAY(Sequelize.TEXT) data type

The other option I have is to somehow create my own 'search' query for the epilogue instance, however I am not sure if this is possible to do at this stage?