An open API service indexing awesome lists of open source software.

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

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
}
}
}
```