requestify

Sending HTTP Post request from node to Foxx service (ArangoDB)

ε祈祈猫儿з 提交于 2019-12-11 06:08:15
问题 I am trying to send a post request from a node + express server to my Foxx service on Arangodb. On the node side : var route = arangopi + '/edge/' + col.name ; var body = {data: data, from: fromId, to: toId} ; console.log('|| body :', route, body) ; >> || body : http//XXX/_db/my-DB/my-foxx-service/path/to/visitedBy { data: { isBackup: true, text: '', isHint: true, continuance: 3441.5 }, from: 'Drop/27237133', to: 'Bot/41116378' } return requestify.post (route, body) On the Foxx side, I