sanity-typed icon indicating copy to clipboard operation
sanity-typed copied to clipboard

GROQ Fix equality between non-literals

Open saiichihashimoto opened this issue 1 year ago • 0 comments

Anything that resolves to non-literal number==number ends up returning true, where it should return boolean. I think it should go:

  • [ ] If they're both literals, return true or false based on if they're equal
  • [ ] If one of them is non-literal but they're the same type, return boolean
  • [ ] If they're different types, return false
  • [ ] Return the inverse for !=

saiichihashimoto avatar Sep 13 '23 20:09 saiichihashimoto