Class Mongoid::Relations::Builders::Referenced::ManyToMany
In: lib/mongoid/relations/builders/referenced/many_to_many.rb
Parent: Builder

Methods

build   query?  

Public Instance methods

This builder either takes a hash and queries for the object or an array of documents, where it will just return them.

@example Build the documents.

  Builder.new(meta, attrs).build

@param [ String ] type The type of document to query for.

@return [ Array<Document> ] The documents.

Do we need to perform a database query? It will be so if the object we have is not a document.

@example Should we query the database?

  builder.query?

@return [ true, false ] Whether a database query should happen.

@since 2.0.0.rc.1

[Validate]