Giter Club home page Giter Club logo

graphql-examples's Introduction

GraphQL Examples

These are some really basic GraphQL examples

Getting started

You need node to exec the examples.
To run the examples, exec in the terminal node filename
Example: node /initial/index.js

For all the examples, except the ones in initial, exec in the terminal node filename and open http://localhost:3000/graphql

Order in chaos

  1. Start in /initial/index.js
  2. How to work with collections /initial/video-collection.js
  3. Check how to use graphql and express express/use-express-graphql.js
  4. How to write a schema with js express/js-graphql-schema.js
  5. Query videos by specific ID using args in query/query-by-id.js
  6. How to define required args with GraphQLNonNull in query/non-null.js
  7. Return a collection of videos with GraphQLList in query/resolve-all-videos.js
  8. Mutations! Add a new video to the collection mutations/mutation.js
  9. Input types, organize args in mutations: mutations/input-type.js

graphql-examples's People

Contributors

elstr avatar

Stargazers

 avatar  avatar

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.