-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add the data bundle sample #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d5996d0
to
81b8099
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR, @Lyokone !
Just 2 minor comments
String string = response.body; | ||
final buffer = Uint8List.fromList(string.codeUnits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we name this variable body
instead? I think it's more descriptive than string
.
String string = response.body; | |
final buffer = Uint8List.fromList(string.codeUnits); | |
String body = response.body; | |
final buffer = Uint8List.fromList(body.codeUnits); |
|
||
// Use the cached named query | ||
final results = await FirebaseFirestore.instance.namedQueryGet( | ||
"example-query", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Web, iOS and Android samples use latest-stories-query
(see example) - let's use that for consistency across languages.
"example-query", | |
"latest-stories-query", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Lyokone !
I'll update https://firebase.google.com/docs/firestore/bundles accordingly |
Description of what this PR is changing or adding:
Data Bundle sample for Firestore
Issues fixed by this PR (if any):
Risk Level
Pre-submit checklist