Skip to content

v0.5.7

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Jan 15:48
  • The interval at which Alinea polls the backend for content updates is
    now configurable. It can be set in config.syncInterval and overwritten
    per query.

    // Poll for updates every 60 seconds
    const results = await cms.syncInterval(60).find(Entry())
    // Disable syncing all for this query in case you want results fast,
    // but not necessarily up to date
    const matches = await cms.disableSync().find(Entry().search('fast'))