Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.12 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.12 KB

SimpleQL

NPM version build status Test coverage npm download

A simple query language, just like grathql, but much simple.

Usage

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