How to use the cozy-client.dehydrate function in cozy-client

To help you get started, we’ve selected a few cozy-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy.github.io / en / cozy-banks / src / ducks / filters / index.js View on Github external
export const filterByDoc = doc => ({
  type: FILTER_BY_DOC,
  doc: doc && (doc.length ? doc : dehydrate(doc))
})
export const filterByAccounts = accounts => ({
github cozy / cozy.github.io / en / cozy-banks / src / ducks / recurrence / api.js View on Github external
recurrenceBundle.ops.map(op =>
        addRelationship(dehydrate(op), 'recurrence', {
          _id: recurrenceBundle._id,
          _type: RECURRENCE_DOCTYPE
        })
      )