effect-app / libs

The core libraries to build apps with Effect
45 stars 7 forks source link

Express more complex queries on simple array members #95

Closed patroza closed 3 weeks ago

patroza commented 4 weeks ago
{
   indexes: string[]
}
query(Q.where("indexes.-1", "startsWith", "a"))

(right now -1 means "any")

we have it already for complex types:

{
   indexes: { name: string }. []
}
query(Q.where("indexes.-1.name", "startsWith", "a")) 
jfet97 commented 3 weeks ago

I don't get the value of doing this, could you please fix the second example and/or provide a more meaningful example?

patroza commented 3 weeks ago

already works apparently... nothing to see here :D