lib/mongo/crypt/encryption_io.rb
# Get collection info for a collection matching the provided filter
#
# @param [ Hash ] filter
#
# @return [ Hash ] The collection information
Get collection info for a collection matching the provided filter
Get collection info for a collection matching the provided filter
def collection_info(db_name, filter)
        unless @client
          raise ArgumentError, 'collection_info requires client to have been passed to the constructor, but it was not'
        end
        @client.use(db_name).database.list_collections(filter: filter).first
      end
def collection_info ( db_name , filter ) unless @client raise ArgumentError , 'collection_info requires client to have been passed to the constructor, but it was not' end @client . use ( db_name ) . database . list_collections ( filter : filter ) . first end
Get collection info for a collection matching the provided filter
Get collection info for a collection matching the provided filter
The collection information
The collection information
 Hash 
db_name
filter
None