1.0.0 • Published 4 years ago

@genql/my-package-105 v1.0.0

Weekly downloads
1
License
-
Repository
-
Last release
4 years ago

@genql/my-package-105

Your awesome graphql client ❤️

Example usage

import { createClient } from '@genql/my-package-105'
const client = createClient()



// variables
var country__code

client
  .query({
    country: [
      {
        code: country__code,
      },
      {
        code: true,
        name: true,
        phone: true,
        currency: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var continent__code
var country__code
var language__code

client
  .query({
    continent: [
      {
        code: continent__code,
      },
      {
        code: true,
        name: true,
      },
    ],
    continents: {
      countries: {
        states: {
          country: {
            name: true,
            native: true,
            phone: true,
            currency: true,
            emojiU: true,
          },
        },
        continent: {
          code: true,
          name: true,
        },
        name: true,
        native: true,
        phone: true,
        capital: true,
        emojiU: true,
      },
      code: true,
    },
    countries: {
      capital: true,
      currency: true,
      emoji: true,
      emojiU: true,
    },
    country: [
      {
        code: country__code,
      },
      {
        native: true,
        capital: true,
      },
    ],
    language: [
      {
        code: language__code,
      },
      {
        native: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




client
  .query({
    continents: {
      name: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var language__code

client
  .query({
    countries: {
      states: {
        country: {
          states: {
            code: true,
          },
          continent: {
            name: true,
          },
          languages: {
            name: true,
            native: true,
          },
          name: true,
          phone: true,
          emojiU: true,
        },
        name: true,
      },
      continent: {
        countries: {
          states: {
            code: true,
          },
          code: true,
          name: true,
          native: true,
          phone: true,
          capital: true,
        },
      },
      languages: {
        code: true,
        name: true,
        rtl: true,
      },
      native: true,
      emojiU: true,
    },
    continents: {
      countries: {
        code: true,
        name: true,
        capital: true,
        currency: true,
      },
      name: true,
    },
    languages: {
      code: true,
    },
    language: [
      {
        code: language__code,
      },
      {
        name: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))