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