Open wiseaidev opened 2 years ago
Have you try EmbeddedJsonModel
instead of HashModel
?
@wiseaidev Does this line work?
await Migrator().run()
Try using and
instead of &
@wiseaidev Does this line work?
await Migrator().run()
I've tried this in my asynchronous code. It does seem to work. I'm not sure what happens under the hood though. There doesn't seem to be much documentation to how exactly this helps redis-om 'create indices' in redis.
@wiseaidev I've opened up this issue to track a related 'potential' bug: #462
Code to reproduce the issue:
However, the following expressions work as expected:
This confirms my hypothesis that a
JsonModel
object can index at most oneHashModel
field. Is that intentional or a bug?