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


# @genql/clashroyale

Your awesome graphql client ❤️

## Example usage

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



client
  .query({
    clash_locations_aggregate: {
      nodes: {
        clans_aggregate: {
          nodes: {
            name: true,
            previousRank: true,
            rank: true,
            tag: true,
          },
          aggregate: {
            count: true,
          },
        },
        clans: {
          clanScore: true,
          previousRank: true,
          rank: true,
          tag: true,
        },
        countryCode: true,
      },
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var query_root__clash_cards_by_pk__id
var query_root__clash_clans_by_pk__tag

client
  .query({
    clash_cards_aggregate: {
      nodes: {
        id: true,
        maxLevel: true,
        name: true,
      },
      aggregate: {
        max: {
          name: true,
        },
      },
    },
    clash_cards: {
      iconUrls: true,
    },
    clash_cards_by_pk: [
      {
        id: query_root__clash_cards_by_pk__id,
      },
      {
        id: true,
        maxLevel: true,
      },
    ],
    clash_clans: {
      location: {
        id: true,
        localizedName: true,
        name: true,
      },
      players: {
        clan: {
          players: {
            clanTag: true,
            donationsReceived: true,
            expLevel: true,
            lastSeen: true,
            name: true,
            tag: true,
            trophies: true,
          },
          location: {
            id: true,
            isCountry: true,
          },
          name: true,
          previousRank: true,
        },
        arena: true,
        clanRank: true,
        clanTag: true,
        expLevel: true,
        lastSeen: true,
        role: true,
      },
      players_aggregate: {
        aggregate: {
          min: {
            clanChestPoints: true,
            donations: true,
            donationsReceived: true,
            expLevel: true,
            lastSeen: true,
            tag: true,
          },
          max: {
            donations: true,
            expLevel: true,
            previousClanRank: true,
            tag: true,
            trophies: true,
          },
          stddev_samp: {
            clanChestPoints: true,
            clanRank: true,
            donations: true,
            donationsReceived: true,
            expLevel: true,
            previousClanRank: true,
          },
          sum: {
            donations: true,
            expLevel: true,
            previousClanRank: true,
            trophies: true,
          },
          var_pop: {
            clanChestPoints: true,
            clanRank: true,
            donationsReceived: true,
            expLevel: true,
          },
          count: true,
        },
        nodes: {
          clan: {
            badgeId: true,
            locationId: true,
          },
          clanChestPoints: true,
          clanRank: true,
          donations: true,
          lastSeen: true,
          name: true,
          tag: true,
        },
      },
      badgeId: true,
      locationId: true,
      name: true,
      tag: true,
    },
    clash_clans_by_pk: [
      {
        tag: query_root__clash_clans_by_pk__tag,
      },
      {
        clanScore: true,
        name: true,
        previousRank: true,
      },
    ],
    clash_players: {
      clanChestPoints: true,
      clanTag: true,
      donationsReceived: true,
      lastSeen: true,
      name: true,
      previousClanRank: true,
      role: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var query_root__clash_players_by_pk__tag

client
  .query({
    clash_players_by_pk: [
      {
        tag: query_root__clash_players_by_pk__tag,
      },
      {
        arena: true,
        donationsReceived: true,
        name: true,
        previousClanRank: true,
        role: true,
        tag: true,
        trophies: true,
      },
    ],
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))




// variables
var query_root__clash_cards_by_pk__id
var query_root__clash_clans_by_pk__tag
var query_root__clash_locations_by_pk__id

client
  .query({
    clash_cards: {
      iconUrls: true,
      maxLevel: true,
    },
    clash_cards_by_pk: [
      {
        id: query_root__clash_cards_by_pk__id,
      },
      {
        id: true,
        maxLevel: true,
      },
    ],
    clash_clans_by_pk: [
      {
        tag: query_root__clash_clans_by_pk__tag,
      },
      {
        location: {
          isCountry: true,
          localizedName: true,
        },
        players: {
          clanRank: true,
          clanTag: true,
          donations: true,
          donationsReceived: true,
          lastSeen: true,
          name: true,
          previousClanRank: true,
          role: true,
          tag: true,
          trophies: true,
        },
        locationId: true,
        previousRank: true,
      },
    ],
    clash_locations: {
      clans: {
        players_aggregate: {
          nodes: {
            clanChestPoints: true,
            clanTag: true,
            donations: true,
            expLevel: true,
            lastSeen: true,
            name: true,
            role: true,
            trophies: true,
          },
        },
        location: {
          clans: {
            badgeId: true,
            clanScore: true,
            locationId: true,
            rank: true,
            tag: true,
          },
          isCountry: true,
          name: true,
        },
        players: {
          clan: {
            badgeId: true,
            locationId: true,
            name: true,
            rank: true,
          },
          clanChestPoints: true,
          name: true,
          role: true,
          tag: true,
        },
        locationId: true,
        previousRank: true,
      },
      clans_aggregate: {
        aggregate: {
          count: true,
        },
      },
      isCountry: true,
      localizedName: true,
      name: true,
    },
    clash_locations_by_pk: [
      {
        id: query_root__clash_locations_by_pk__id,
      },
      {
        id: true,
        localizedName: true,
        name: true,
      },
    ],
    clash_players: {
      clanChestPoints: true,
      name: true,
      previousClanRank: true,
      trophies: true,
    },
  })
  .then(x => console.log(JSON.stringify(x, null, 4)))


```