분류
Nodejs
gotql - got에 내장 된 GraphQL 요청 라이브러리.
본문
https://github.com/khaosdoctor/gotql
const gotQl = require('gotql') const query = { operation: { name: 'users', fields: ['name', 'age', 'id'] } } const options = { headers: { "Authorization": "Bearer <token>" }, debug: false } gotQL.query('mygraphqlendpoint.com.br/api', query, options) .then(response => console.log(response.data)) .catch(console.error)
- 이전글ndb - Chrome DevTools에서 디버깅 환경을 개선했습니다. 19.03.07
- 다음글cacheable-request - RFC 호환 캐시 지원으로 원시 HTTP 요청을 래핑합니다. 19.03.07