voicebank_querybuilder
v0.0.6
Published
Service for building graphl queries for the voicebank project
Downloads
4
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)