js-data

Respect Your Data

Give your data the treatment it deserves with a framework-agnostic, datastore-agnostic JavaScript ORM built for ease of use and peace of mind. Works in Node.js and in the Browser.

Get Started

DS#refreshAll

DS#refreshAll(resourceName[, params][, options])

Call DS#findAll with the given params, and keeping only the intersection between the result and the items already in the store that match the params, everything else being ejected (that matched the params but didn't come back in the result).

👍

You can call DS#refreshAll multiple ways

  • DS#refreshAll(resourceName[, params][, options])
  • Resource#refreshAll([, params][, options]) - Where Resource was created by DS#defineResource

Argument

Type

Description

resourceName

string

The name of the resource to use. Unnecessary if calling refreshAll directly on a Resource.

params

object

Query parameters for selecting items to refresh. Default: {}. See Query Syntax.

options (optional)

object

Configuration options. Also passed through to DS#findAll, the adapter being used, and DS#inject.

📘

Need help?

Want more examples or have a question? Ask on the Slack channel or post on the mailing list then we'll get your question answered and probably update this wiki.

Updated less than a minute ago

DS#refreshAll


DS#refreshAll(resourceName[, params][, options])

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.