itsezc / lucid

Build apps in record time, with no backend or vendor lock-in & full type safety that scales infinitely - try the new Surreal experience.

Home Page:https://lucid.engineering.foret.ag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FR: Multiple conditions on comparison

itsezc opened this issue · comments

Currently it isn't possible to have:

Account.select()
   .where({
      location: {
         inside: {
            type: 'Point',
            coordinates: [21, 21]
         },
         outside: {
            type: 'Point',
            coordinates: [22, 22]
         }
      }
})
.build()
Account.select()
   .where({
      username: {
         endsWith: 'ends',
         startsWith: 'starts'
      }
   })
.build()

As only one comparison generates a valid query.