Show:

Mixin for Store to support fetching models using projection.

Item Index

Methods

findAll

(
  • modelName
  • [options]
)
DS.AdapterPopulatedRecordArray public

Finds all records for the given model type.

See findAll for details.

Parameters:

  • modelName String

    The name of the model type.

  • [options] Object optional

    Options.

    • projection String

      Projection name.

Returns:

DS.AdapterPopulatedRecordArray:

Records promise.

findRecord

(
  • modelName
  • id
  • [options]
)
Promise public

Returns a record for a given type and id combination.

See findRecord for details.

Parameters:

  • modelName String

    The name of the model type.

  • id String | Integer

    Record ID.

  • [options] Object optional

    Options.

    • projection String

      Projection name.

Returns:

Promise:

Record promise.

query

(
  • modelName
  • query
)
Promise

Parameters:

  • modelName String
  • query Any

    an opaque query to be used by the adapter

Returns:

Promise:

promise

queryRecord

(
  • modelName
  • query
)
Promise

Parameters:

  • modelName String
  • query Any

    an opaque query to be used by the adapter

Returns:

Promise:

promise