···11+### This file was generated by Nexus Schema
22+### Do not make changes to this file directly
33+44+"""
55+Move a Pokémon can perform with the associated damage and type.
66+"""
77+type Attack {
88+ damage: Int
99+ name: String
1010+ type: PokemonType
1111+}
1212+1313+type AttacksConnection {
1414+ fast: [Attack]
1515+ special: [Attack]
1616+}
1717+1818+"""
1919+Requirement that prevents an evolution through regular means of levelling up.
2020+"""
2121+type EvolutionRequirement {
2222+ amount: Int
2323+ name: String
2424+}
2525+2626+type Pokemon {
2727+ attacks: AttacksConnection
2828+ classification: String @deprecated(reason: "And this is the reason why")
2929+ evolutionRequirements: [EvolutionRequirement]
3030+ evolutions: [Pokemon]
3131+3232+ """
3333+ Likelihood of an attempt to catch a Pokémon to fail.
3434+ """
3535+ fleeRate: Float
3636+ height: PokemonDimension
3737+ id: ID!
3838+3939+ """
4040+ Maximum combat power a Pokémon may achieve at max level.
4141+ """
4242+ maxCP: Int
4343+4444+ """
4545+ Maximum health points a Pokémon may achieve at max level.
4646+ """
4747+ maxHP: Int
4848+ name: String!
4949+ resistant: [PokemonType]
5050+ types: [PokemonType]
5151+ weaknesses: [PokemonType]
5252+ weight: PokemonDimension
5353+}
5454+5555+type PokemonDimension {
5656+ maximum: String
5757+ minimum: String
5858+}
5959+6060+"""
6161+Elemental property associated with either a Pokémon or one of their moves.
6262+"""
6363+enum PokemonType {
6464+ Bug
6565+ Dark
6666+ Dragon
6767+ Electric
6868+ Fairy
6969+ Fighting
7070+ Fire
7171+ Flying
7272+ Ghost
7373+ Grass
7474+ Ground
7575+ Ice
7676+ Normal
7777+ Poison
7878+ Psychic
7979+ Rock
8080+ Steel
8181+ Water
8282+}
8383+8484+type Query {
8585+ """
8686+ Get a single Pokémon by its ID, a three character long identifier padded with zeroes
8787+ """
8888+ pokemon(id: ID!): Pokemon
8989+9090+ """
9191+ List out all Pokémon, optionally in pages
9292+ """
9393+ pokemons(limit: Int, skip: Int): [Pokemon]
9494+}
···11+/* eslint-disable */
22+import * as types from './graphql';
33+import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
44+55+/**
66+ * Map of all GraphQL operations in the project.
77+ *
88+ * This map has several performance disadvantages:
99+ * 1. It is not tree-shakeable, so it will include all operations in the project.
1010+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
1111+ * 3. It does not support dead code elimination, so it will add unused operations.
1212+ *
1313+ * Therefore it is highly recommended to use the babel or swc plugin for production.
1414+ */
1515+const documents = {
1616+ '\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n':
1717+ types.PokemonFieldsFragmentDoc,
1818+ '\n fragment weaknessFields on Pokemon {\n weaknesses\n }\n':
1919+ types.WeaknessFieldsFragmentDoc,
2020+ '\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n':
2121+ types.PokDocument,
2222+ '\n query Po($id: ID!) {\n pokemon(id: $id) {\n id\n fleeRate\n __typename\n }\n }\n':
2323+ types.PoDocument,
2424+ '\n query PokemonsAreAwesome {\n pokemons {\n id\n }\n }\n':
2525+ types.PokemonsAreAwesomeDocument,
2626+};
2727+2828+/**
2929+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
3030+ *
3131+ *
3232+ * @example
3333+ * ```ts
3434+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
3535+ * ```
3636+ *
3737+ * The query argument is unknown!
3838+ * Please regenerate the types.
3939+ */
4040+export function graphql(source: string): unknown;
4141+4242+/**
4343+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
4444+ */
4545+export function graphql(
4646+ source: '\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n'
4747+): (typeof documents)['\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n'];
4848+/**
4949+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
5050+ */
5151+export function graphql(
5252+ source: '\n fragment weaknessFields on Pokemon {\n weaknesses\n }\n'
5353+): (typeof documents)['\n fragment weaknessFields on Pokemon {\n weaknesses\n }\n'];
5454+/**
5555+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
5656+ */
5757+export function graphql(
5858+ source: '\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n'
5959+): (typeof documents)['\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n'];
6060+/**
6161+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
6262+ */
6363+export function graphql(
6464+ source: '\n query Po($id: ID!) {\n pokemon(id: $id) {\n id\n fleeRate\n __typename\n }\n }\n'
6565+): (typeof documents)['\n query Po($id: ID!) {\n pokemon(id: $id) {\n id\n fleeRate\n __typename\n }\n }\n'];
6666+/**
6767+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
6868+ */
6969+export function graphql(
7070+ source: '\n query PokemonsAreAwesome {\n pokemons {\n id\n }\n }\n'
7171+): (typeof documents)['\n query PokemonsAreAwesome {\n pokemons {\n id\n }\n }\n'];
7272+7373+export function graphql(source: string) {
7474+ return (documents as any)[source] ?? {};
7575+}
7676+7777+export type DocumentType<TDocumentNode extends DocumentNode<any, any>> =
7878+ TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
···50505151**Optional**
52525353+- `template` the shape of your template, by default `gql`
5454+- `templateIsCallExpression` this tells our client that you are using `graphql('doc')`
5355- `disableTypegen` disables type-generation in general, this could be needed if offset bugs are introduced
5456- `scalars` allows you to pass an object of scalars that we'll feed into `graphql-code-generator`
5557- `extraTypes` allows you to specify imports or declare types to help with `scalar` definitions
5658- `shouldCheckForColocatedFragments` when turned on, this will scan your imports to find
5759 unused fragments and provide a message notifying you about them
6060+6161+### GraphQL Code Generator client-preset
6262+6363+For folks using the `client-preset` you can ues the following config
6464+6565+```json
6666+{
6767+ "compilerOptions": {
6868+ "plugins": [
6969+ {
7070+ "name": "@0no-co/graphqlsp",
7171+ "schema": "./schema.graphql",
7272+ "disableTypegen": true,
7373+ "templateIsCallExpression": true,
7474+ "template": "graphql"
7575+ }
7676+ ]
7777+ }
7878+}
7979+```
58805981## Fragment masking
6082
···11+/* eslint-disable */
22+import * as types from './graphql';
33+import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
44+55+/**
66+ * Map of all GraphQL operations in the project.
77+ *
88+ * This map has several performance disadvantages:
99+ * 1. It is not tree-shakeable, so it will include all operations in the project.
1010+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
1111+ * 3. It does not support dead code elimination, so it will add unused operations.
1212+ *
1313+ * Therefore it is highly recommended to use the babel or swc plugin for production.
1414+ */
1515+const documents = {
1616+ '\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n':
1717+ types.PokemonFieldsFragmentDoc,
1818+ '\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n':
1919+ types.PokDocument,
2020+};
2121+2222+/**
2323+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
2424+ *
2525+ *
2626+ * @example
2727+ * ```ts
2828+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
2929+ * ```
3030+ *
3131+ * The query argument is unknown!
3232+ * Please regenerate the types.
3333+ */
3434+export function graphql(source: string): unknown;
3535+3636+/**
3737+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
3838+ */
3939+export function graphql(
4040+ source: '\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n'
4141+): (typeof documents)['\n fragment pokemonFields on Pokemon {\n id\n name\n attacks {\n fast {\n damage\n name\n }\n }\n }\n'];
4242+/**
4343+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
4444+ */
4545+export function graphql(
4646+ source: '\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n'
4747+): (typeof documents)['\n query Pok($limit: Int!) {\n pokemons(limit: $limit) {\n id\n name\n fleeRate\n classification\n ...pokemonFields\n ...weaknessFields\n __typename\n }\n }\n'];
4848+4949+export function graphql(source: string) {
5050+ return (documents as any)[source] ?? {};
5151+}
5252+5353+export type DocumentType<TDocumentNode extends DocumentNode<any, any>> =
5454+ TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
···11+### This file was generated by Nexus Schema
22+### Do not make changes to this file directly
33+44+"""
55+Move a Pokémon can perform with the associated damage and type.
66+"""
77+type Attack {
88+ damage: Int
99+ name: String
1010+ type: PokemonType
1111+}
1212+1313+type AttacksConnection {
1414+ fast: [Attack]
1515+ special: [Attack]
1616+}
1717+1818+"""
1919+Requirement that prevents an evolution through regular means of levelling up.
2020+"""
2121+type EvolutionRequirement {
2222+ amount: Int
2323+ name: String
2424+}
2525+2626+type Pokemon {
2727+ attacks: AttacksConnection
2828+ classification: String @deprecated(reason: "And this is the reason why")
2929+ evolutionRequirements: [EvolutionRequirement]
3030+ evolutions: [Pokemon]
3131+3232+ """
3333+ Likelihood of an attempt to catch a Pokémon to fail.
3434+ """
3535+ fleeRate: Float
3636+ height: PokemonDimension
3737+ id: ID!
3838+3939+ """
4040+ Maximum combat power a Pokémon may achieve at max level.
4141+ """
4242+ maxCP: Int
4343+4444+ """
4545+ Maximum health points a Pokémon may achieve at max level.
4646+ """
4747+ maxHP: Int
4848+ name: String!
4949+ resistant: [PokemonType]
5050+ types: [PokemonType]
5151+ weaknesses: [PokemonType]
5252+ weight: PokemonDimension
5353+}
5454+5555+type PokemonDimension {
5656+ maximum: String
5757+ minimum: String
5858+}
5959+6060+"""
6161+Elemental property associated with either a Pokémon or one of their moves.
6262+"""
6363+enum PokemonType {
6464+ Bug
6565+ Dark
6666+ Dragon
6767+ Electric
6868+ Fairy
6969+ Fighting
7070+ Fire
7171+ Flying
7272+ Ghost
7373+ Grass
7474+ Ground
7575+ Ice
7676+ Normal
7777+ Poison
7878+ Psychic
7979+ Rock
8080+ Steel
8181+ Water
8282+}
8383+8484+type Query {
8585+ """
8686+ Get a single Pokémon by its ID, a three character long identifier padded with zeroes
8787+ """
8888+ pokemon(id: ID!): Pokemon
8989+9090+ """
9191+ List out all Pokémon, optionally in pages
9292+ """
9393+ pokemons(limit: Int, skip: Int): [Pokemon]
9494+}