Update start.md
This commit is contained in:
parent
765ac9a5e3
commit
8e502d2d6a
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
auto posts = db.posts()->query()
|
auto posts = db.posts()->query()
|
||||||
where(Post::idField() == postId)
|
->where(Post::idField() == postId)
|
||||||
toList();
|
->toList();
|
||||||
// now posts is a QList<Post*> contain all posts in
|
// now posts is a QList<Post*> contain all posts in
|
||||||
// database that has id equal to postId variable
|
// database that has id equal to postId variable
|
||||||
auto post = q->first();
|
auto post = q->first();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue