Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: js-graphql-query-lib
node v8.17.0
version:
0.0.3
endpoint
share
tweet
const QueryBuilder = require('js-graphql-query-lib/QueryBuilder'); let filter = { lang: 'en', id: 755, DateOfBirth: ["2018-04-23 00:00:00", "2018-04-23 23:59:59"], favorites: true, }; let select = [ 'id', { account: ['bill', 'transaction', 'country'] }, 'name', { passport: [ {placeofissue: ['country', 'city']}, 'seria', 'number' ] } , ]; let QueryObject = new QueryBuilder('User', filter, select); console.log(QueryObject.query);
Created from: https://npm.runkit.com/js-graphql-query-lib
Loading…
no comments
sign in
to comment