func (c *Context) NextOperation() (bsoncore.Document, error) {
	opDocBinary := newBinary() // out param for mongocrypt_ctx_mongo_op to fill in operation
	defer opDocBinary.close()

	if ok := C.mongocrypt_ctx_mongo_op(c.wrapped, opDocBinary.wrapped); !ok {
		return nil, c.createErrorFromStatus()
	}
	return opDocBinary.toBytes(), nil
}
// NextOperation gets the document for the next database operation to run.
NextOperation gets the document for the next database operation to run.
// NextOperation gets the document for the next database operation to run .
func (c *Context) NextOperation() (bsoncore.Document, error) {
	opDocBinary := newBinary() 
	defer opDocBinary.close()
	if ok := C.mongocrypt_ctx_mongo_op(c.wrapped, opDocBinary.wrapped); !ok {
		return nil, c.createErrorFromStatus()
	}
	return opDocBinary.toBytes(), nil
}
func ( c * Context ) NextOperation ( ) ( bsoncore . Document , error ) { opDocBinary := newBinary ( ) defer opDocBinary . close ( ) if ok := C . mongocrypt_ctx_mongo_op ( c . wrapped , opDocBinary . wrapped ) ; ! ok { return nil , c . createErrorFromStatus ( ) } return opDocBinary . toBytes ( ) , nil }
NextOperation gets the document for the next database operation to run.
NextOperation gets the document for the next database operation to run .
// out param for mongocrypt_ctx_mongo_op to fill in operation