1.0.0 • Published 4 years ago

@genql/mys-package-666 v1.0.0

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

@genql/mys-package-666

Your awesome graphql client ❤️

Example usage

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



// variables
var country__code

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




// variables
var country__code

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




// variables
var language__code
var continent__code

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




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