mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-03 12:50:09 +00:00
13 lines
307 B
JavaScript
13 lines
307 B
JavaScript
const axios = require('axios');
|
|
async function run() {
|
|
try {
|
|
const res = await axios.post('https://api.hardcover.app/v1/graphql', {
|
|
query: "{ __schema { types { name } } }"
|
|
});
|
|
console.log(res.data);
|
|
} catch(e) {
|
|
console.log(e.response ? e.response.data : e.message);
|
|
}
|
|
}
|
|
run();
|