module Mongoid::Contextual::Command

def client

Returns:
  • (Mongo::Client) - The Mongo client.

Other tags:
    Example: Get the client. -
def client
  collection.database.client
end