Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

ankri/reddit-graphql-wrapper

Repository files navigation

reddit-graphql-wrapper

This is a work in progress graphql wrapper for the reddit api. Currently this only supports fetching information for a subreddit and the listing of its posts.

Installation

Clone the repository, create a .env file and add PORT=4000 (or any other port) to the file. Run npm start and go to http://localhost:4000/graphql

Example query

Paste this query in your GraphiQL box and hit run.

query {
  subreddit(name: "pics") {
    name,
    listings {
      hot {
        title,
        url
    	}
    }
  }
}

Query documentation

TBD

About

A WIP graphql wrapper for the reddit api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published