Closed negezor closed 6 years ago
This might not be related to graphql-sequelize, could you try and recreate the query in pure sequelize to see if it fails?
It looks like it's failing on something that's supposed to be a postgres array.
synonyms: {
[Op.iLike]: `%${query}%`
}
Looks illegal, AFAIK you can't LIKE on array
This does not work with pure sequelize. Are there alternative search options for case-insensitive names in the array?
I don't know off the top of my head, you'll have to go searching.
please confirm the type of query: typeof query
What are you doing?
I wanted to implement a search through relay connections
Search scheme
Query
What do you expect to happen?
I expected that I would receive a relay connection from the list of search
What is actually happening?
I'm getting a connection for the user. But in releases I get an error
I understand that the error is related to sequelize, but it's also related to graphql-sequelize
What I use
Postgres: 10.2 Node.js: 9.8.0
sequelize: 4.37.1 graphql-sequelize: 8.0.0 graphql-tools: 2.23.1
pg: 7.4.1 pg-hstore: 2.3.2