https://github.com/aretecode/reddit-graphql
GraphQL Reddit client
https://github.com/aretecode/reddit-graphql
Last synced: 3 months ago
JSON representation
GraphQL Reddit client
- Host: GitHub
- URL: https://github.com/aretecode/reddit-graphql
- Owner: aretecode
- Created: 2019-05-15T20:53:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T01:30:00.000Z (over 6 years ago)
- Last Synced: 2025-01-07T22:18:54.188Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://reddit-lite-graphql.aretecode.now.sh
- Size: 106 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reddit-lite-graphql
> wraps part of the reddit api in graphql
[](https://stackshare.io/aretecode/reddit-lite)
[](https://travis-ci.org/aretecode/reddit-lite-graphql)
[](https://deploy.now.sh/?repo=https://github.com/aretecode/reddit-lite-graphql)
See [https://reddit-lite-graphql.now.sh/](https://reddit-lite-graphql.now.sh/) for the curren deployment
## Development
> if you are not familiar with graphql playground, [read about it here](https://www.apollographql.com/docs/apollo-server/features/graphql-playground)
```bash
git clone git@github.com:aretecode/reddit-lite-graphql.git
yarn install
yarn dev
open http://localhost:4000/graphql
```
## Example Query
```graphql
query {
posts(subReddit: "vancouver", shouldMock: true) {
list {
id
postKind
createdAtIso
createdAtUtc
createdAtPretty
title
body
url
isSticky
authorFullName
authorFlairText
commentCount
score
imageUrl
}
}
}
```