graphql-pokedex
v1.4.1
Published
GraphQL pokedex schema
Downloads
10
Readme
graphql-pokedex
In memory Pokedex graphql schema, for mocking and testing purposes.
Data and sprites are imported from pokeapi project.
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.