Wrong example at pub.dev #391
Unanswered
paulobreim
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the pub.dev, we can see it:
var coll = db.collection('find');
// Fluent way
await collection.find(where.eq('name', 'Tom').gt('rating', 10)).toList();
// or Standard way
await collection.find({'name': 'Tom', 'rating': {r'$gt': 10}}).toList();
the correct is
var coll = db.collection('find');
// Fluent way
await coll.find(where.eq('name', 'Tom').gt('rating', 10)).toList();
// or Standard way
await coll.find({'name': 'Tom', 'rating': {r'$gt': 10}}).toList();
tks
paulo
Beta Was this translation helpful? Give feedback.
All reactions