System Runtime

System Runtime

  • Languages iconRomână
    • ENGLISH
    • Ajutati-ne cu Traducerea
  • SUPPORT
  • GITHUB

›APIS

Introducere

  • What is System Runtime ?
  • System Runtime architecture
  • What is Design First ?
  • Prezentare generală

Ghiduri

  • Quick Start
  • How to install System Runtime
  • Design your model
  • Creează componente
  • Manage your components
  • Bundle your system
  • Extend System Runtime
  • Go deeper

Exemple

  • Un elementar ''hello world''
  • Create-a-bundle
  • Install a bundle client-side
  • Instalează un pachet in HTML
  • Instalează un pachet server-side
  • Package a bundle
  • Create a component
  • Crează tipuri noi
  • Crează o relație unu la unu
  • Crează multe relații unu la unu
  • Navighează prin modele
  • Inheritance between components
  • Listen to a change of state of a component
  • Use System Runtime NoSQL Database
  • Object-Document Mapper in action
  • Use System Runtime core apis
  • Use System Runtime history apis
  • Quick Start example

APIS

  • Component Clasă
  • runtime Component
  • metamodel Component
  • logger Component
  • Component db
  • history Component
  • Colecție Document

Despre

  • Cine este în spatele lui System Runtime?
  • License
Translate

Colecție Document

count( ) : number

  • Description: Returns the number of document in a collection.
const nbDocuments = runtime.require('db').collections().Person.count();

find( query ) : array

  • Description: Find a document into the collection. It returns an array of id of the found documents.
const arrDocuments = runtime.require('db').collections().Person.find({
  'firstName': 'Laure'
});

Puteţi utiliza selectoari query:

const arrDocuments = runtime.require('db').collections().Person.find({
  'firstName': {
    '$eq': 'Laure'
  }
});

De asemenea, aveţi posibilitatea să sortaţi rezultatul:

const arrDocuments = runtime.require('db').collections().Person.find().sort({
  'name': 1
});

insert( document ) : array

  • Description: Insert an new document into the collection. It returns an array of id of the created documents.
const arrDocumentId = runtime.require('db').collections().Person.insert({
  'firstName': 'Laure',
  'age': 50
});

update( query, document, option ) : array

  • Description: Update documents into a collection. It returns an array of id of the updated documents.
const arrDocumentId = runtime.require('db').collections().Person.update(
  {'name': 'Jean'},
  {'age': 30}, 
  {'upsert': true}
);

remove( query ) : array

  • Description: Remove a document from the collection. It returns an array of id of the removed documents.
const arrDocumentId = runtime.require('db').collections().Person.remove(
  {'name': 'Jean'}
);
← history ComponentCine este în spatele lui System Runtime? →
  • count( ) : number
  • find( query ) : array
  • insert( document ) : array
  • update( query, document, option ) : array
  • remove( query ) : array
System Runtime is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou