-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery.js
More file actions
41 lines (41 loc) · 964 Bytes
/
query.js
File metadata and controls
41 lines (41 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
name: "query",
ns: "superagent",
async: true,
description: "The .query() method accepts objects, which when used with the GET method will form a query-string. The following will produce the path /search?query=Manny&range=1..5&order=desc.",
phrases: {
active: "Adding query string"
},
ports: {
input: {
request: {
title: "Request",
type: "function"
},
query: {
title: "Query",
type: "object",
async: true,
fn: function __QUERY__(data, source, state, input, $, output) {
var r = function() {
output({
request: $.write('request', $.request.query($.query))
});
}.call(this);
return {
state: state,
return: r
};
}
}
},
output: {
request: {
type: "Request",
title: "Request"
}
}
},
state: {},
on: {}
}