graphql-pokedex

GraphQL pokedex schema

Usage no npm install needed!

<script type="module">
  import graphqlPokedex from 'https://cdn.skypack.dev/graphql-pokedex';
</script>

README

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.