redis-om-python
redis-om-python copied to clipboard
Find on empty string or None raise error
When I try to compare field to empty string or None it is failing instead of returning empty array
class Image(AppJsonModel):
name: str = Field(index=True)
# Migrator().run()
Image.find(Image.name == None).all() # TypeError: argument of type 'NoneType' is not iterable
Image.find(Image.name == '').all() # redis.exceptions.ResponseError: Syntax error at offset 5 near pk