Closed RohitM-IN closed 2 weeks ago
This PR solves #377
According to the docs if we follow and create the table similar to https://jsstore.net/docs/keypath
it will give us type error for select query because of this
connection.select({ from: 'cities', where: { cityPincodes: ['london',12345] // order of values should be same as what has been defined in keyPath } })
here the where is of type IWhereQuery or IWhereQuery[]
here is the problem
the type IWhereQueryshould include any[] as well to support the above select query
IWhereQuery
type IWhereQuery = Record<string, IWhereQueryOption | string | number | boolean | any[]> | { or?: IWhereQuery; };
Thanks @RohitM-IN for the PR.
This PR solves #377
According to the docs if we follow and create the table similar to https://jsstore.net/docs/keypath
it will give us type error for select query because of this
here the where is of type IWhereQuery or IWhereQuery[]
here is the problem
the type
IWhereQuery
should include any[] as well to support the above select query