Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 851 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 851 Bytes

Chat on Discord

As Easy as 1, 2, 3

import { jexiaClient, dataOperations } from "jexia-sdk-js/node"; // jexia-sdk-js/browser;
const dataModule = dataOperations();

// You can need to use API Key / API Secret which is generated in Jexia. 
//Do not forget make Policy for API   
jexiaClient().init({
  projectID: "project_id",
  key: "API_KEY",
  secret: "API_SECRET",
},dataModule);

// Now you can run CRUD operations for Dataset: clients
dataModule.dataset("clients")
  .select()
  .subscribe(records => { 
     // you will always get an array of created records, including their 
     //generated IDs (even when inserting a single record) 
  }, 
  error => { 
     // you can see the error info here, if something goes wrong 
});