https://github.com/shepherdwind/simpleql
simple query language
https://github.com/shepherdwind/simpleql
Last synced: 11 months ago
JSON representation
simple query language
- Host: GitHub
- URL: https://github.com/shepherdwind/simpleql
- Owner: shepherdwind
- License: mit
- Created: 2019-11-11T10:31:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T08:01:02.000Z (about 6 years ago)
- Last Synced: 2025-07-06T04:58:19.100Z (12 months ago)
- Language: TypeScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleQL
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/simpleql-parse.svg?style=flat-square
[npm-url]: http://npmjs.org/package/simpleql-parse
[download-image]: https://img.shields.io/npm/dm/simpleql-parse.svg?style=flat-square
[download-url]: https://npmjs.org/package/simpleql-parse
[travis-image]: https://img.shields.io/travis/shepherdwind/simpleql.svg?style=flat-square
[travis-url]: https://travis-ci.org/shepherdwind/simpleql
[coveralls-image]: https://img.shields.io/coveralls/shepherdwind/simpleql.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/shepherdwind/simpleql?branch=master
A simple query language, just like grathql, but much simple.
### Usage
```js
import { parse } from 'simpleql-parse';
const astTree = parse(`
$root: Member {
honourMember: member
payerStatus
}
foo: All
Contract(id: $id)
clause: Fengdie(path: insmutual_clause, base: $foo) {
a
b: bdc
}
latest: *Fengdie(insxhbbff_old_upgrade)
`);
```