@unitybase/base/ServerRepository

Repository for server-side data retrieve
Author:
  • pavel.mash

Classes

ServerRepository

Methods

fabric(entityName, connectionopt)ServerRepository inner

Create new instance of ServerRepository

 const Repository = require('@unitybase.base/ServerRepository').fabric;
 var req = Repository('uba_user').attrs('*').ubql();
Arguments:
  1. entityName (String)  name of Entity for which we create repository
  2. [connection=null] (UBConnection)  The remote server connection. For internal server thread can be empty