// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
packageoptions
import(
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
// ChangeStreamOptions represents all possible options to a change stream
typeChangeStreamOptionsstruct{
BatchSize*int32// The number of documents to return per batch
Collation*Collation// Specifies a collation
FullDocument*FullDocument// When set to ‘updateLookup’, the change notification for partial updates will include both a delta describing the changes to the document, as well as a copy of the entire document that was changed from some time after the change occurred.
MaxAwaitTime*time.Duration// The maximum amount of time for the server to wait on new documents to satisfy a change stream query
ResumeAfterinterface{}// Specifies the logical starting point for the new change stream
StartAtOperationTime*primitive.Timestamp// Ensures that a change stream will only provide changes that occurred after a timestamp.