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#digest

DS#digest()

Trigger a digest loop that checks for changes and if any exist updates the lastModified timestamp if an object has changed, along with recomputing computed properties.

If your browser supports Object.observe then this method has no effect.

👍

Method Variants

You can call DS#digest multiple ways:

  • DS#digest()
  • Resource#digest() - Where Resource was created by DS#defineResource

📘

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#digest


DS#digest()

Suggested Edits are limited on API Reference Pages

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