Update start.md

This commit is contained in:
Hamed Masafi 2019-07-09 10:45:59 +04:30 committed by GitHub
parent 765ac9a5e3
commit 8e502d2d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();