Appearance
Overview
Interacting with aeppic is mostly done via the Aeppic interface.
It provides functions to create documents, edit them, query them etc.
javascript
// Create a new document
const newDocument = await Aeppic.new(documentForm, parentDocument)
newDocument.data.name = 'Hallo'
Aeppic.save(newDocument)
// Delete a document (moving it into the Recycler)
Aeppic.delete('some-other-doc')
// Find documents
const docs = await Aeppic.find(Query.global().where('id').isOneOf(['a','b']))
const a = await Aeppic.get('doc-a')
const b = await Aeppic.findOne(Query.children().where('data.name').is('hello'))
const testDocs = await Aeppic.find('p:apps data.name:*test*')
See Editable Document for more info on editing a document
On top of that it also provides access to modules for handling more extended typical operations.
javascript
// Access Authentication information
const auth = Aeppic.Auth
const currentAccount = Aeppic.Account
const homePage = Aeppic.HomePage
// Basic navigation
Aeppic.navigateTo('document-id')
Aeppic.navigateHome()
// Connection Info
const info = Aeppic.ConnectionStatus
// Access luxon via Aeppic.DateTime
const now = Aeppic.DateTime.local()
// Execute commands against the aeppic data model
const result = await Aeppic.Commands.execute('command-id', 'target-document')