Skip to content

Commit c911f97

Browse files
committed
TODO cleanup
1 parent 99ca193 commit c911f97

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

packages/firestore/src/lite-api/expressions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,6 @@ export class Constant extends Expr {
21182118
*/
21192119
static of(value: DocumentReference): Constant;
21202120

2121-
// TODO(pipeline) if we make this public, then the Proto types should also be documented
21222121
/**
21232122
* Creates a `Constant` instance for a Firestore proto value.
21242123
* @private

packages/firestore/test/integration/api/pipeline.test.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -907,40 +907,6 @@ apiDescribe('Pipelines', persistence => {
907907
const proto = _internalPipelineToExecutePipelineRequestProto(pipeline);
908908
expect(proto).not.to.be.null;
909909
});
910-
911-
// TODO(pipeline) support converter
912-
// it('pipeline converter works', async () => {
913-
// interface AppModel {myTitle: string; myAuthor: string; myPublished: number}
914-
// const converter: FirestorePipelineConverter<AppModel> = {
915-
// fromFirestore(result: FirebaseFirestore.PipelineResult): AppModel {
916-
// return {
917-
// myTitle: result.data()!.title as string,
918-
// myAuthor: result.data()!.author as string,
919-
// myPublished: result.data()!.published as number,
920-
// };
921-
// },
922-
// };
923-
//
924-
// const results = await firestore
925-
// .pipeline()
926-
// .collection(randomCol.path)
927-
// .sort(Field.of('published').ascending())
928-
// .limit(2)
929-
// .withConverter(converter)
930-
// .execute();
931-
//
932-
// const objs = results.map(r => r.data());
933-
// expect(objs[0]).to.deep.equal({
934-
// myAuthor: 'Jane Austen',
935-
// myPublished: 1813,
936-
// myTitle: 'Pride and Prejudice',
937-
// });
938-
// expect(objs[1]).to.deep.equal({
939-
// myAuthor: 'Fyodor Dostoevsky',
940-
// myPublished: 1866,
941-
// myTitle: 'Crime and Punishment',
942-
// });
943-
// });
944910
});
945911

946912
describe('modular API', () => {

0 commit comments

Comments
 (0)