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