MCPcopy
hub / github.com/parse-community/parse-server / get

Function get

spec/ParseQuery.Aggregate.spec.js:58–69  ·  view source on GitHub ↗
(url, options)

Source from the content-addressed store, hash-verified

56};
57
58const get = function (url, options) {
59 options.qs = options.body;
60 delete options.body;
61 Object.keys(options.qs).forEach(key => {
62 options.qs[key] = JSON.stringify(options.qs[key]);
63 });
64 return request(Object.assign({}, { url }, options))
65 .then(response => response.data)
66 .catch(response => {
67 throw { error: response.data };
68 });
69};
70
71describe('Parse.Query Aggregate testing', () => {
72 beforeEach(async () => {

Callers 1

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected