An open API service indexing awesome lists of open source software.

https://github.com/shepherdwind/simpleql

simple query language
https://github.com/shepherdwind/simpleql

Last synced: 11 months ago
JSON representation

simple query language

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)
`);
```