1.0.0 • Published 4 years ago

@genql/my-package-55 v1.0.0

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

@genql/my-package-55

Your awesome graphql client ❤️

Example usage

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



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




// variables
var query_root__user_by_pk__id

client
  .query({
    user_by_pk: [
      {
        id: query_root__user_by_pk__id,
      },
      {
        age: true,
        id: true,
        name: true,
      },
    ],
    user: {
      id: true,
      name: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var query_root__user_by_pk__id

client
  .query({
    user_by_pk: [
      {
        id: query_root__user_by_pk__id,
      },
      {
        age: true,
        id: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var query_root__user_by_pk__id

client
  .query({
    user_by_pk: [
      {
        id: query_root__user_by_pk__id,
      },
      {
        age: true,
        name: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))