--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Return the first Resource or the first N Resources for the Model with an optional query
- !ruby/struct:SM::Flow::P 
  body: When there are no arguments, return the first Resource in the Model. When the first argument is an Integer, return a Collection containing the first N Resources. When the last (optional) argument is a Hash scope the results to the query.
- !ruby/struct:SM::Flow::P 
  body: "@param [Integer] limit (optional)"
- !ruby/struct:SM::Flow::VERB 
  body: "  limit the returned Collection to a specific number of entries\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Hash] query (optional)"
- !ruby/struct:SM::Flow::VERB 
  body: "  scope the returned Resource or Collection to the supplied query\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource, Collection]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The first resource in the entries of this collection,\n  or a new collection whose query has been merged\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Model#first
is_singleton: false
name: first
params: (*args)
visibility: public
