Closed munhyok closed 2 years ago
As the error message suggests, you might forget to run migrations first as the readme file says; So try something like:
from fastapi import FastAPI
from redis_om import (
Migrator
)
app = FastAPI(title=__name__)
@app.on_event("startup")
async def startup():
await Migrator().run()
And don't forget to call the all
method: all()
After creating a JsonModel called Form as above I want to get only JSON that contains a specific date using the .find() method. So I wrote the code below.
But when I write like that, FastAPI outputs redis_om.model.model.NotFoundError
https://www.youtube.com/watch?v=Cy9fAvsXGZA&list=LL&index=2&t=1208s The YouTube tutorial is output when you input a specific pk value into the address bar, but can't it be done with date?