code: function(gs) {
    // Initialize the duplex stream
    Duplex.call(this);
  
    // Get the gridstore
    this.gs = gs;
  
    // End called
    this.endCalled = false;
  
    // If we have a seek
    this.totalBytesToRead = this.gs.length - this.gs.position;
    this.seekPosition = this.gs.position;
  }
docs: Create a new GridStoreStream instance (INTERNAL TYPE, do not instantiate directly)
  
  @class
  @extends external:Duplex
  @return {GridStoreStream} a GridStoreStream instance.
  @deprecated Use GridFSBucket API instead