npm package: @genql/flick
Description: Graphql client
Latest version: 1.0.0


# @genql/flick

Your awesome graphql client ❤️

## Example usage

```js
import { createClient } from '@genql/flick'
const client = createClient()



// variables
var getHashtagsFromCaptions__username
var generateCheckoutUrl__addons
var generateCheckoutUrl__planId
var getPosts__username
var getViralPosts__hashtags
var invoicePDF__id
var estimateQueryRestrictiveness__query

client
  .query({
    getHashtagsFromCaptions: [
      {
        username: getHashtagsFromCaptions__username,
      },
      {
        postedAt: true,
      },
    ],
    generateCheckoutUrl: [
      {
        addons: generateCheckoutUrl__addons,
        planId: generateCheckoutUrl__planId,
      },
      {
        id: true,
        type: true,
        url: true,
        expires_at: true,
      },
    ],
    getPosts: [
      {
        username: getPosts__username,
      },
      {
        id: true,
      },
    ],
    metrics: {
      usersRegistered: {
        count: true,
      },
      conversions: {
        date: true,
      },
      isAffiliate: true,
    },
    getViralPosts: [
      {
        hashtags: getViralPosts__hashtags,
      },
      {
        moreAvailable: true,
      },
    ],
    invoicePDF: [
      {
        id: invoicePDF__id,
      },
    ],
    estimateQueryRestrictiveness: [
      {
        query: estimateQueryRestrictiveness__query,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var suggestedHashtags__name
var estimateQueryRestrictiveness__query

client
  .query({
    suggestedHashtags: [
      {
        name: suggestedHashtags__name,
      },
    ],
    estimateQueryRestrictiveness: [
      {
        query: estimateQueryRestrictiveness__query,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var getRankedPosts__hashtag
var getRankedPosts__username
var generateCheckoutUrl__addons
var generateCheckoutUrl__planId
var getPosts__username
var getViralPosts__hashtags
var getViralPostsByHashtag__igUsername
var getViralPostsByHashtag__hashtag

client
  .query({
    getRankedPosts: [
      {
        hashtag: getRankedPosts__hashtag,
        username: getRankedPosts__username,
      },
      {
        url: true,
        shortcode: true,
        lastUpdated: true,
        takenAt: true,
      },
    ],
    generateCheckoutUrl: [
      {
        addons: generateCheckoutUrl__addons,
        planId: generateCheckoutUrl__planId,
      },
      {
        state: true,
        expires_at: true,
        resource_version: true,
        object: true,
      },
    ],
    getPosts: [
      {
        username: getPosts__username,
      },
      {
        image: true,
      },
    ],
    user: {
      activeWorkspace: {
        name: true,
        isOwner: true,
      },
      id: true,
      name: true,
      email: true,
      createdAt: true,
      profilePicture: true,
      referrer: true,
      referrerUrl: true,
      hasLinkedGoogle: true,
      isTrialling: true,
      features: true,
      timezone: true,
    },
    getViralPosts: [
      {
        hashtags: getViralPosts__hashtags,
      },
      {
        posts: {
          counts: {
            comments: true,
            engagement: true,
            impressions: true,
          },
          takenAt: true,
        },
      },
    ],
    getViralPostsByHashtag: [
      {
        igUsername: getViralPostsByHashtag__igUsername,
        hashtag: getViralPostsByHashtag__hashtag,
      },
      {
        posts: {
          counts: {
            likes: true,
            engagement: true,
          },
          mediaType: true,
          permalink: true,
        },
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var getViralPostsByHashtag__igUsername
var getViralPostsByHashtag__hashtag
var hashtagOld__name
var getRankedPosts__hashtag
var getRankedPosts__username
var getHashtagsFromCaptions__username
var getPosts__username
var estimateQueryRestrictiveness__query

client
  .query({
    getViralPostsByHashtag: [
      {
        igUsername: getViralPostsByHashtag__igUsername,
        hashtag: getViralPostsByHashtag__hashtag,
      },
      {
        posts: {
          counts: {
            likes: true,
            saved: true,
          },
          id: true,
          mediaType: true,
        },
      },
    ],
    invoices: {
      id: true,
      date: true,
      currency: true,
      url: true,
      dueDate: true,
      createdDate: true,
      status: true,
    },
    hashtagOld: [
      {
        name: hashtagOld__name,
      },
      {
        averageLikes: true,
        dapc: true,
        opportunity: true,
        rankability: true,
        likesStd: true,
      },
    ],
    getRankedPosts: [
      {
        hashtag: getRankedPosts__hashtag,
        username: getRankedPosts__username,
      },
      {
        url: true,
        shortcode: true,
        lastUpdated: true,
        takenAt: true,
      },
    ],
    getHashtagsFromCaptions: [
      {
        username: getHashtagsFromCaptions__username,
      },
      {
        postedAt: true,
      },
    ],
    getPosts: [
      {
        username: getPosts__username,
      },
      {
        name: true,
        image: true,
        caption: true,
      },
    ],
    user: {
      joyrides: {
        mobileOnboarding: true,
      },
      activeWorkspace: {
        id: true,
        isOwner: true,
      },
      referrer: true,
      referrerUrl: true,
      hasLinkedGoogle: true,
      isTrialling: true,
      features: true,
      hasCompletedRegistration: true,
      timezone: true,
    },
    estimateQueryRestrictiveness: [
      {
        query: estimateQueryRestrictiveness__query,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))


```