Comparisons in .where cause crash
Open
- Dominant language
- Swift
- Stars
- 874
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Hi 👋
I'm facing a weird issue, when I run this code:
```swift
// initial.id is a UUID
let search = Search(graph: Globals.graph).where(
.type("Customers", using: &&)
&& "id" == initial.id as CVarArg // <- Is it the good way?
)
```
This causes a crash (here is the crashlog: https://pastebin.com/uk6em3p1).
But if I run this code, it works:
```swift
let search = Search(graph: Globals.graph).where(.type("Customers"))
let entity = search.sync().filter {
$0["id"] as! UUID == initial.id
}
```
Am I doing something wrong with the new API or is it a library issue?
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.