0.1.11-alpha.3 • Published 6 years ago
@imxiaomi/gem-sdk v0.1.11-alpha.3
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
6 years ago
0.1.11-alpha.2
6 years ago
0.1.11-alpha.1
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago