0.1.11-alpha.3 • Published 5 years ago

@imxiaomi/gem-sdk v0.1.11-alpha.3

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

General Entity Manager SDK (Development)

Install

npm i @imxiaomi/gem-sdk

Get started

// example/demo/
import DomainSDK from "@imxiaomi/gem-sdk"

const sdk = new DomainSDK({
  baseUrl: 'http://gem.project.ci/domain-api',
  domainId: 'xxx',
  clientId: 'yyy',
  clientSecret: 'zzz'
})
const records = await sdk.queryRecords('person', 'name = Master')
console.log(records)

Tutorial

query records by using entity sdk. More examples please see demo

const entity = new EntitySDK(domainSDK, 'entityName')
const sdk = new DomainSDK(getDomainOptions())
const entity = new EntitySDK(sdk, 'person')
const records = await entity.queryRecords('name ~ Mister')
console.log(records)
// [{name: 'Mister', id: 'xxx'}, ...]

TQL Query Language

Please see TQL Spec

0.1.11-alpha.3

5 years ago

0.1.11-alpha.2

5 years ago

0.1.11-alpha.1

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago