UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

13 lines (12 loc) 494 B
import { CoreStitchServiceClient, Decoder } from "mongodb-stitch-core-sdk"; export default class CoreRemoteMongoReadOperation<T> { private readonly command; private readonly args; private readonly service; private readonly collectionDecoder?; constructor(command: string, args: object, service: CoreStitchServiceClient, decoder?: Decoder<T>); iterator(): Promise<Iterator<T>>; first(): Promise<T | undefined>; asArray(): Promise<T[]>; private executeRead; }