1.0.0 • Published 4 years ago

@genql/my-package-7 v1.0.0

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

@genql/my-package-7

Your awesome graphql client ❤️

Example usage

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



client
  .query({
    languages: {
      name: 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({
    language: [
      {
        code: language__code,
      },
      {
        native: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var country__code

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