https://github.com/jakelin/moments-api
GraphQL API for Moments app
https://github.com/jakelin/moments-api
Last synced: 2 months ago
JSON representation
GraphQL API for Moments app
- Host: GitHub
- URL: https://github.com/jakelin/moments-api
- Owner: JakeLin
- License: mit
- Created: 2020-10-24T06:22:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-11T03:17:43.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T10:12:14.638Z (4 months ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moments-api
GraphQL API for Moments app## Setup
```shell
$ yarn
```## Start the app
```shell
$ node index.js
```Then open http://localhost:4000/ on your browser and see the playground, then use the following Query to fetch the data.
```graphql
{
getMomentsDetailsByUserID(userID: "0") {
userDetails {
id
name
avatar
backgroundImage
}
moments {
id
userDetails {
name
avatar
}
type
title
photos
createdDate
}
}
}
```