graphql-pokedex

1.4.1 • Public • Published

graphql-pokedex

In memory Pokedex graphql schema, for mocking and testing purposes.

Data and sprites are imported from pokeapi project.

Explore the schema online.

Usage as library

import { schema } from 'graphql-pokedex';

This will provide executable graphql-js schema, which you can then supply to graphql clients/tools/middleware/etc;

import { fetch } from 'graphql-pokedex';
fetch({ query, variables, operationName}).then(
    result => ...
);

Use this function to execute a query against the schema.

/graphql-pokedex/

    Package Sidebar

    Install

    npm i graphql-pokedex

    Weekly Downloads

    10

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    381 kB

    Total Files

    7

    Last publish

    Collaborators

    • sevinf