@genql/my-package-861
v1.0.0
Published
Graphql client
Downloads
4
Readme
@genql/my-package-861
Your awesome graphql client ❤️
Example usage
import { createClient } from '@genql/my-package-861'
const client = createClient()
client
.query({
continents: {
name: true,
},
})
.then(x => console.log(JSON.stringify(x, null, 4)))
// variables
var country__code
client
.query({
country: [
{
code: country__code,
},
{
code: true,
native: true,
phone: true,
capital: true,
emojiU: true,
},
],
})
.then(x => console.log(JSON.stringify(x, null, 4)))
// variables
var country__code
var continent__code
var language__code
client
.query({
country: [
{
code: country__code,
},
{
code: true,
native: true,
capital: true,
currency: true,
emoji: true,
emojiU: true,
},
],
continent: [
{
code: continent__code,
},
{
countries: {
continent: {
countries: {
code: true,
native: true,
capital: true,
emoji: true,
},
code: true,
name: true,
},
languages: {
native: true,
},
states: {
code: true,
name: true,
},
code: true,
name: true,
native: true,
phone: true,
capital: true,
currency: true,
emojiU: true,
},
code: true,
},
],
languages: {
name: true,
},
language: [
{
code: language__code,
},
{
code: true,
rtl: true,
},
],
})
.then(x => console.log(JSON.stringify(x, null, 4)))
client
.query({
continents: {
countries: {
code: true,
native: true,
capital: true,
emoji: true,
},
code: true,
},
})
.then(x => console.log(JSON.stringify(x, null, 4)))