backend/business-management/bin/services/emi-gateway/GraphQlService.js
/**
   * returns a map that assocs GraphQL request with its processor.
   */
returns a map that assocs GraphQL request with its processor.
returns a map that assocs GraphQL request with its processor .
generateFunctionMap() {
    return {
      'emigateway.graphql.mutation.persistBusiness': {
        fn: business.createBusiness$,
        obj: business
      },
      'emigateway.graphql.mutation.updateBusinessGeneralInfo': {
        fn: business.updateBusinessGeneralInfo$,
        obj: business
      },
      'emigateway.graphql.mutation.updateBusinessAttributes': {
        fn: business.updateBusinessAttributes$,
        obj: business
      },
      'emigateway.graphql.mutation.updateBusinessState': {
        fn: business.changeBusinessState$,
        obj: business
      },
      'emigateway.graphql.query.getBusinessCount': {
        fn: business.getBusinessCount$,
        obj: business
      },
      'emigateway.graphql.query.getBusiness': {
        fn: business.getBusiness$,
        obj: business
      },
      'emigateway.graphql.query.getBusinesses': {
        fn: business.getBusinesses$,
        obj: business
      },
      "emigateway.graphql.query.getBusinessByFilterText": {
        fn: business.getBusinessByFilter$,
        obj: business
      },
      "emigateway.graphql.query.myBusiness": {
        fn: business.getMyBusiness$,
        obj: business
      },
      "emigateway.graphql.mutation.updateBusinessContactInfo": {
        fn: business.updateBusinessContatInfo$,
        obj: business
      }
    };
  }
generateFunctionMap ( ) { return { 'emigateway.graphql.mutation.persistBusiness' : { fn : business . createBusiness$ , obj : business } , 'emigateway.graphql.mutation.updateBusinessGeneralInfo' : { fn : business . updateBusinessGeneralInfo$ , obj : business } , 'emigateway.graphql.mutation.updateBusinessAttributes' : { fn : business . updateBusinessAttributes$ , obj : business } , 'emigateway.graphql.mutation.updateBusinessState' : { fn : business . changeBusinessState$ , obj : business } , 'emigateway.graphql.query.getBusinessCount' : { fn : business . getBusinessCount$ , obj : business } , 'emigateway.graphql.query.getBusiness' : { fn : business . getBusiness$ , obj : business } , 'emigateway.graphql.query.getBusinesses' : { fn : business . getBusinesses$ , obj : business } , "emigateway.graphql.query.getBusinessByFilterText" : { fn : business . getBusinessByFilter$ , obj : business } , "emigateway.graphql.query.myBusiness" : { fn : business . getMyBusiness$ , obj : business } , "emigateway.graphql.mutation.updateBusinessContactInfo" : { fn : business . updateBusinessContatInfo$ , obj : business } } ; }
returns a map that assocs GraphQL request with its processor.
returns a map that assocs GraphQL request with its processor .