@shitty-scope-name/countries
v0.0.0
Published
SDK client for countries GraphQL API
Downloads
2
Readme
countries
GraphQl client for countries with full typescript support
Installation
npm install @shitty-scope-name/countries
Docs
You can read more about usage in the client docs and Genql docs})
Example usage
import { createClient } from '@genql/countries'
const client = createClient()
// query variables
let representations
client
.query({
_entities: [
{
representations: representations,
},
],
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
client
.query({
_service: {
sdl: true,
},
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
// query variables
let filter
client
.query({
countries: [
{
filter: filter,
},
{
code: true,
name: true,
native: true,
},
],
})
.then((x) => console.log(JSON.stringify(x, null, 4)))
Sponsor
This project is sponsored by Notaku