query
const axios = require('axios');
// Equivalent to `axios.get('https://httpbin.org/get?answer=42')`
const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } });
params
const moment = require('moment');
const params = {
answer: { toJSON: () => 42 },
time: moment('2016-06-01')
};
// { answer: 42, time: "\"2016-06-01T04:00:00.000Z\"" }
const res = await axios.get('https://httpbin.org/get', { params });