https://github.com/moonhighway/moonhighway-cloud
A fake cloud for a real company.
https://github.com/moonhighway/moonhighway-cloud
Last synced: about 1 year ago
JSON representation
A fake cloud for a real company.
- Host: GitHub
- URL: https://github.com/moonhighway/moonhighway-cloud
- Owner: MoonHighway
- Created: 2019-10-22T02:33:45.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T04:59:51.000Z (over 3 years ago)
- Last Synced: 2024-04-14T23:28:28.239Z (about 2 years ago)
- Language: JavaScript
- Size: 1.28 MB
- Stars: 14
- Watchers: 3
- Forks: 9
- Open Issues: 55
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Sample Cloud
A sample cloud of examples built on Apollo Federation.

## Test Operations for the Hue Review
### Create an Account or Login
```graphql
# Create or Authorize a User
mutation authorize($email: String!, $password: String!) {
authorize(email: $email, password: $password) {
token
user {
name
}
}
}
mutation create($create: CreateUserForm!) {
createAccount(input: $create) {
token
user {
email
name
}
}
}
```
#### Query Variables
```json
{
"email": "biscuit@cats.com",
"password": "badPassword",
"create": {
"email": "jungle@cats.com",
"name": "Jungle Cat",
"password": "badPassword"
}
}
```
### Check you User Info
```graphql
query myInfo {
me {
email
name
postedColors {
id
title
value
reviews {
advRating
reviews {
rating
comment
}
}
}
}
}
```
#### Http Headers
```json
{
"authorization": "Bearer "
}
```
### Add Some Colors
```graphql
mutation add($title: String!, $value: String!) {
addColor(title: $title, value: $value) {
id
title
createdBy {
email
name
}
}
}
```
```json
{
"title": "Grand",
"value": "#00FF00"
}
```
### List Some Colors
```graphql
query allColors {
allColors {
id
title
value
createdBy {
name
}
reviews {
advRating
yourReview {
rating
comment
}
reviews {
rating
comment
}
}
}
}
```
### Rate a Color a Color
```graphql
mutation rateColor($input: ReviewForm!) {
addReview(input: $input) {
id
rating
comment
color {
title
value
}
user {
email
name
}
}
}
```
### Query Variables
```json
{
"input": {
"itemID": "O6z9tliSS",
"rating": 2,
"comment": "This color isn't beautiful"
}
}
```
## Test Operations for Rowdy
```graphql
```
```json
```
### Create an Account or Login
```graphql
```
```json
```
### Check your User Info
```graphql
```
```json
```
### Add some photos
```graphql
```
```json
```
### List Some photos
```graphql
```
```json
```
### Review a Photo
```graphql
```
```json
```
### Check the Reviews
```graphql
```
```json
```