Coder Social home page Coder Social logo

xxczaki / omdb-graphql-wrapper Goto Github PK

View Code? Open in Web Editor NEW
45.0 3.0 4.0 23 KB

:rocket: GraphQL wrapper for the OMDb API

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

License: MIT License

JavaScript 100.00%
graphql apollo omdb api wrapper graphql-server graphql-wrapper nodejs npm node

omdb-graphql-wrapper's Introduction

OMDb API GraphQL Wrapper

Easily use OMDb API with GraphQL ๐Ÿš€

Demo ๐Ÿ”ง


Setup a server:

  1. Clone this repository
  2. Run npm install
  3. Get the OMDb API key and paste it in the config.json file
  4. Run npm run dev to start the server in the development mode
  5. Go to localhost:2121 and play with the GraphQL Playground
  6. If you want to build the server, run npm run build and then npm start to start the server from the recently created dist directory.

Usage

Check out the GraphQL documentation first!

Queries

Using the movie title:

{
  ByTitle(title: "Matrix") {
    Title
    Year
    Rated
    Plot
    Genre
  }
}

Using IMDb ID

{
  ById(id: "100") {
    Director
    Actors
    Country
  }
}

Fields:

Title

Returns: string

Title of the movie/tv show

Year

Returns: string

Year the movie was released

Rated

Returns: string

Movie rating (eg. 12+)

Released

Returns: string

Full date of release

Runtime

Returns: string

Runtime of the movie

Genre

Returns: string

Genre(s) of the movie

Director

Returns: string

Movie Director(s)

Writer

Returns: string

Movie Writer(s)

Actors

Returns: string

Actors

Plot

Returns: string

Plot

Language

Returns: string

Language(s)

Country

Returns: string

Country or countries where the movie was made

Awards

Returns: string

Awards

Poster

Returns: string

Link to a movie poster

Metascore

Returns: string

Metascore

imdbRating

Returns: string

Rating from IMDb

imdbVotes

Returns: string

Number of votes from IMDb

Type

Returns: string

Type (movie, tv show etc.)

DVD

Returns: string

DVD release date

BoxOffice

Returns: string

Box Office

Production

Returns: string

Production company

Website

Returns: string

Website of the movie

Response

Returns: string

Check, if there was a response from OMDb

License

MIT

omdb-graphql-wrapper's People

Contributors

0xdaksh avatar xxczaki 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

Watchers

 avatar  avatar  avatar

omdb-graphql-wrapper's Issues

Demo offline?

Is the demo GraphQL server offline? I can't reach the endpoint.

Great example of GQL.

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.