GithubHelp home page GithubHelp logo

lucasbento / graphql-pokemon Goto Github PK

View Code? Open in Web Editor NEW
500.0 7.0 82.0 243 KB

Get information of a Pokémon with GraphQL!

Home Page: https://graphql-pokemon.now.sh/

JavaScript 100.00%
graphql relay nodejs koa react-relay-pokemon

graphql-pokemon's Introduction

GraphQL Pokémon

Get information of a Pokémon with GraphQL!
See the GraphiQL interface

How to use

Simply get Pokémon's information through queries in GraphQL, example:

query {
  pokemon(name: "Pikachu") {
    id
    number
    name
    attacks {
      special {
        name
        type
        damage
      }
    }
    evolutions {
      id
      number
      name
      weight {
        minimum
        maximum
      }
      attacks {
        fast {
          name
          type
          damage
        }
      }
    }
  }
}

Try this query here!

Check out the React Relay Pokémon Project and Live Demo too!

Running

Production

yarn
yarn run build-app
yarn start

Development

yarn
yarn run watch # Using nodemon for auto-reloading

or

vercel dev # npm i -g @now/cli

Disclaimer

This was built as part of a talk on Relay & GraphQL at @ReactSP meetup, check us out, we build cool stuff. ;)

Related Projects

  • Pokemon Gopher - Fetch information about pokémons with GraphQL and GO 🙂

graphql-pokemon's People

Contributors

greenkeeper[bot] avatar henriquepagno avatar lucasbento avatar racerxdl avatar rlindskog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

graphql-pokemon's Issues

Problem during build&run

Hi Lucas, how are you?

I was trying to run your project and looking at the package.json scripts I've seen that the watch, does not work.

Any clue on how can we solve this?

image

Don't use Viewer

Love this!!!

Just a suggestion to not put everything on a Viewer type, which is an antipattern in GraphQL servers, but instead to put all root access on the Query type.

API Down

For some reason, the API is crashing often and returning 503

Captura de Tela 2020-08-09 às 15 03 12

Mutation Example

This is a great example repository -- one of the few resources I've found without the context of a viewer -- so thanks for that!

Any plans to add a mutation to the examples?

Maybe create your own Pokemon?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.