GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Adding FieldMask support to GetAll() by schmidt-sebastian · Pull Request #443 · googleapis/nodejs-firestore
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Conversation
|
| * @param options.fieldMask - The subset of fields to return from a read | ||
| * operation. | ||
| */ | ||
| export function validateReadOptions(options: ReadOptions): boolean { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (refOrQuery instanceof DocumentReference) { | ||
| return this._firestore | ||
| .getAll_([refOrQuery], this._requestTag, this._transactionId) | ||
| .getAll_([refOrQuery], null, this._requestTag, this._transactionId) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| let documents: DocumentReference[]; | ||
| let readOptions: ReadOptions|undefined = undefined; | ||
|
|
||
| const usesVarags = !Array.isArray(documentRefsOrReadOptions[0]); |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| documents = documentRefsOrReadOptions as DocumentReference[]; | ||
| } | ||
| } else { | ||
| // Support an array of document references as the first argument for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return createInstance(overrides).then(firestore => { | ||
| return firestore.getAll(firestore.doc('collectionId/documentId')) | ||
| return (firestore as InvalidApiUsage) | ||
| .getAll([firestore.doc('collectionId/documentId')]) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
738ce7e to
f6cbd36
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Comments addressed. Thanks for the review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * @param options.fieldMask - The subset of fields to return from a read | ||
| * operation. | ||
| */ | ||
| export function validateReadOptions(options: ReadOptions): boolean { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (refOrQuery instanceof DocumentReference) { | ||
| return this._firestore | ||
| .getAll_([refOrQuery], this._requestTag, this._transactionId) | ||
| .getAll_([refOrQuery], null, this._requestTag, this._transactionId) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| let documents: DocumentReference[]; | ||
| let readOptions: ReadOptions|undefined = undefined; | ||
|
|
||
| const usesVarags = !Array.isArray(documentRefsOrReadOptions[0]); |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| documents = documentRefsOrReadOptions as DocumentReference[]; | ||
| } | ||
| } else { | ||
| // Support an array of document references as the first argument for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return createInstance(overrides).then(firestore => { | ||
| return firestore.getAll(firestore.doc('collectionId/documentId')) | ||
| return (firestore as InvalidApiUsage) | ||
| .getAll([firestore.doc('collectionId/documentId')]) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.