@nexys/lib
v2.12.1
Published
Referred to as _product service_ in the document
Downloads
35
Readme
SDK for Nexys-System
Referred to as product service in the document
Get started
Init
Create a file to instantiate the product service, product-service.ts
import NexysLib from '@nexys/lib';
export default NexysLib({
authToken: 'myapptoken'
});
CRUD operations
import P from '../product-service';
import { Query } from '@nexys/lib';
import * as CT from '../crud/type'; // this is the export of all CRUD types
/**
* list of users
*/
export const list = async (): Promise<CT.User[]> => await P.ProductQuery.list('User');