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

Latest commit

 

History

History
25 lines (21 loc) · 586 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 586 Bytes

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