This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Bluebird = require('bluebird'); | |
const { isUndefined } = require('lodash'); | |
const Client = require('knex/lib/dialects/mysql'); | |
const Transaction = require('knex/lib/transaction'); | |
const inherits = require('inherits'); | |
const sqlstring = require('sqlstring'); | |
class RDSDataAPITransaction extends Transaction { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"name": "deleteRestaurantService","roles": ["bus_mngr","rest_mngr"],"item_type": "operation", "op_type": "ORG"}, | |
{"name": "createRestaurantService","roles": ["bus_mngr","rest_mngr"],"item_type": "operation", "op_type": "ORG"}, | |
{"name": "BookRequestDelta.user","roles": ["user","bus_mngr","rest_mngr"],"item_type": "entity"}, | |
{"name": "BookRequest.deltas","roles": ["bus_mngr","rest_mngr","maitre","user","item_type": "entity"}, | |
{"name": "BookRequest.person","roles": ["user","bus_mngr","rest_mngr","maitre","waiter"],"item_type": "entity"} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cleanTypenameLink = new ApolloLink((operation, forward) => { | |
if (operation.variables) { | |
operation.variables = this.omitDeep (operation.variables, "__typename") | |
} | |
return forward(operation).map((data) => { | |
return data; | |
}) | |
}) | |
private omitDeep(obj, key) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hiveConnect |