home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
4.12
  • Packages
    • @ember-data/adapter
    • @ember-data/adapter/error
    • @ember-data/adapter/json-api
    • @ember-data/adapter/rest
    • @ember-data/canary-features
    • @ember-data/debug
    • @ember-data/deprecations
    • @ember-data/experimental-preview-types
    • @ember-data/graph
    • @ember-data/json-api
    • @ember-data/legacy-compat
    • @ember-data/model
    • @ember-data/request
    • @ember-data/request/fetch
    • @ember-data/serializer
    • @ember-data/serializer/json
    • @ember-data/serializer/json-api
    • @ember-data/serializer/rest
    • @ember-data/store
    • @ember-data/tracking
  • Classes
    • <Interface> Adapter
    • <Interface> Cache
    • <Interface> Handler
    • <Interface> Serializer
    • AbortError
    • Adapter
    • AdapterError
    • BelongsToReference
    • BooleanTransform
    • BuildURLMixin
    • Cache
    • CacheManager
    • CacheStoreWrapper
    • CanaryFeatureFlags
    • ConflictError
    • CurrentDeprecations
    • DateTransform
    • DebugLogging
    • EmbeddedRecordsMixin
    • Errors
    • Fetch
    • ForbiddenError
    • Future
    • HasManyReference
    • IdentifierCache
    • InvalidError
    • JSONAPIAdapter
    • JSONAPISerializer
    • JSONSerializer
    • ManyArray
    • Model
    • NotFoundError
    • NotificationManager
    • NumberTransform
    • PromiseArray
    • PromiseManyArray
    • PromiseObject
    • RESTAdapter
    • RESTSerializer
    • RecordArray
    • RecordReference
    • RequestManager
    • RequestStateService
    • SchemaService
    • Serializer
    • ServerError
    • Snapshot
    • SnapshotRecordArray
    • StableRecordIdentifier
    • Store
    • StringTransform
    • TimeoutError
    • Transform
    • UnauthorizedError

Class PromiseManyArray public


Defined in: ../model/src/-private/promise-many-array.ts:28
Module: @ember-data/model

This class is returned as the result of accessing an async hasMany relationship on an instance of a Model extending from @ember-data/model.

A PromiseManyArray is an iterable proxy that allows templates to consume related ManyArrays and update once their contents are no longer pending.

In your JS code you should resolve the promise first.

const comments = await post.comments;


Methods

catch (callback) : public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:185

callback
returns

Promise

catch errors thrown by this promise

finally (callback) : public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:196

callback
returns

Promise

run cleanup after this promise completes

reload (options) : public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:128

options
returns

Reload the relationship

then (success, fail) : public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:172

success
fail
returns

Promise

chain this promise

Properties

isFulfilled public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:157

Whether the loading promise succeeded

isPending public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:143

Whether the loading promise is still pending

isRejected public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:150

Whether the loading promise rejected

isSettled public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:164

Whether the loading promise completed (resolved or rejected)

length public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:86

Retrieve the length of the content

links public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:219

Retrieve the links for this relationship

meta public

Module: @ember-data/model

Defined in ../packages/model/src/-private/promise-many-array.ts:229

Retrieve the meta for this relationship

On this page


Methods

  • catch
  • finally
  • reload
  • then

Properties

  • isFulfilled
  • isPending
  • isRejected
  • isSettled
  • length
  • links
  • meta
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.