querybuilder-voicebank
v0.0.7
Published
Service for building graphl queries for the voicebank project
Downloads
2
Readme
voicebank_querybuilder
A Node.js module that builds specific graphql queries for the voicebank project. At this time it is not usable in other projects.
Installation
npm install voicebank_querybuilder --save
Usage
TypeScript
import { buildQuery, buildQuery, buildFbPushMutation,buildBankAccessQuery } from 'voicebank_querybuilder';
let query = querybuilder.buildQuery(operationName: string, fieldObjectName: string, fields: object, id?: string);
let query = querybuilder.buildQuery(operationName: string, fieldObjectName: string, fields: object, inputVariable1?: any, inputVariable2?: any);
let query = querybuilder.buildFbPushMutation(operationName: string, fieldObjectName: string, fields: object, ...inputVariables: string[]);
let query = querybuilder.buildBankAccessQuery(operationName: string, fieldObjectName: string, fields: object, bankAccess: object);
let query = querybuilder.buildBookingQuery(operationName: string, fieldObjectName: string, fields: object, loadBookingsRequest: object)