Skip to content

An example Torrent search backend using GraphQL compared to Rest

Notifications You must be signed in to change notification settings

Eli-Goldberg/torrents-graphql-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torrents-graphql-search

Build Status

This a sample GraphQL project to search for torrents using seek-torrent

  • GraphQL endpoints for torrents / movie data
  • Rest endpoints for comparison
  • ES7 async/await support (using koa-router 7.x, and koa2).
  • Eslint and Mocha
  • Watch scripts in package.json
  • Middlewares: Error, Logging
  • Dockerfile
  • Environments
  • Shrinkwrapped for Production

Graph QL

You can use the GraphiQL in-browser docs:

http://localhost:8080/graphql

REST Api

Searching For movies

finds all torrents containing this string

/torrents?q=americans&type=movie

Specifying types

you can specify a type (movie / series)

/torrents?q=americans&type=movie

About

An example Torrent search backend using GraphQL compared to Rest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published