This class is returned as the result of accessing an async hasMany relationship
on an instance of a Model extending from
A PromiseManyArray is an array-like proxy that also proxies certain method calls to the underlying ManyArray in addition to being "promisified".
Right now we proxy:
This promise-proxy behavior is primarily to ensure that async relationship interact nicely with templates. In your JS code you should resolve the promise first.
const comments = await post.comments;
Whether the loading promise succeeded
Whether the loading promise is still pending
Whether the loading promise rejected
Whether the loading promise completed (resolved or rejected)
Retrieve the length of the content
Retrieve the links for this relationship
Retrieve the meta for this relationship