ast-to-reql
v0.6.0
Published
Create ReQL from RethinkDB AST
Downloads
7
Maintainers
Readme
ast-to-reql
Create ReQL from RethinkDB AST
Installation
npm i --save ast-to-reql
Usage
silly example that converts reql to ast and then back to reql
var astToReQL = require('ast-to-reql')
var reql = r.db('heroes').tableCreate('dc_universe')
var ast = reql.build()
var generateReQL = astToReQL(ast)
console.log(generateReQL.toString()) // 'r.db("heroes").tableCreate("dc_universe")'
License
MIT