0.1.5 • Published 2 years ago

pokemon-graphql-schema v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

pokemon-graphql-schema

This packages export GraphQLSchema built with graphql-tools, which can be used to create a GraphQL service that queries Pokémon data from PokéAPI v2.

Development

This library is still missing most of the API. Help us out by creating GraphQL Schema and resolvers based on PokéAPI v2 docs.

The convention is to preserve naming from their API, except - in query name will be replaced with _.

Installation

npm i pokemon-graphql-schema graphql

Usage

// ES Module
import { schema } from "pokemon-graphql-schema";
// CommonJS
const { schema } = require("pokemon-graphql-schema");

Fetch polyfill

In node, you must polyfill fetch using node-fetch:

const fetch = require("node-fetch");

if (!globalThis.fetch) {
    globalThis.fetch = fetch;
}

License

MIT. Do whatever your heart desires!

0.1.5

2 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago