milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Query Nested attributes #172

Closed mau21mau closed 5 years ago

mau21mau commented 6 years ago

I would like to perform a query on a nested attribute of the user model. Example:

Suppose I have a model:

user = {
    name: "John",
    birth_date: "12-25-1995",
    address: {
        street: "Street 1",
        postal_code: "888-000"
    }
}

my_user = User.Query.filter(address__street="Street 1")
milesrichardson commented 5 years ago

Merged. Thanks! Might be good to also add this to the readme.