Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a77e73e

Browse files
Update README.md
1 parent 2994402 commit a77e73e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,15 @@ pip install sqlalchemy-json-querybuilder
112112
search_obj = Search(session, 'some_module.models', (MyModel1,), filter_by=criteria,
113113
order_by=ordering, page=1, per_page=10, all=False)
114114

115-
# Results contains `data` & `count`
115+
# `results` property will query the DB and fetch the results, Results contains `data` & `count`
116116
results = search_obj.results
117+
118+
# SQLAlchemy `queryset` can be also obtanied, all the functions provided by SQLAlchemy can be invoked on the underlying queryset and later records can be fetched -
119+
queryset = search_obj.query
120+
results = queryset.join(Address, User.id==Address.user_id).join(UserProfile).all()
121+
117122
```
123+
118124

119125
## Operators
120126

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /