collection @users

# do not retrieve all child collections when showing a list of users
attributes :id, :first_name, :last_name, :name, :photo_url, :biography

child :musician_instruments => :instruments do
  attributes :instrument_id, :description, :proficiency_level, :priority
end

child :genres => :genres do
  attributes :genre_id, :description
end