octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
250 stars 30 forks source link

UserWarning: Detected filter using positional arguments. Prefer using the 'filter' keyword argument instead. #220

Open Ledoux opened 11 months ago

Ledoux commented 11 months ago

Hi, when I do such query:

from fireo.fields import TextField
from fireo.models import Model

class Foo(Model):
    name = TextField()

Foo(name="bar").save()
Foo.query(name="bar").get()

I obtain the warning :

venv/lib/python3.10/site-packages/google/cloud/firestore_v1/base_collection.py:290: UserWarning: Detected filter using positional arguments. Prefer using the 'filter' keyword argument instead.

I suppose that maybe the FilterQuery in the lib does not use the new api .where(filter=). Thanks a lot for your attention,

markConklin commented 6 months ago

+1