Typical Mongo Service (photo-share database)
mongodb://localhost:27017/photo-share
Installing mongo
| div.star-rating { | |
| display: flex; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| } | |
| div.star-rating p { | |
| flex-basis: 100%; | |
| } |
| { | |
| "colors": [ | |
| { | |
| "title": "ocean at dusk", | |
| "color": "#00c4e2" | |
| }, | |
| { | |
| "title": "lawn", | |
| "color": "#26ac56" | |
| }, |
| div.star { | |
| cursor: pointer; | |
| height: 25px; | |
| width: 25px; | |
| margin: 2px; | |
| background-color: #AAAAAA; | |
| clip-path: polygon(50% 0%, 63% 38%, 100% 38%, 69% 59%, 82% 100%, 50% 75%, 18% 100%, 31% 59%, 0% 38%, 37% 38%); | |
| } | |
| div.star.selected { |
Here are a few of my favorite resources for UX!
UX Articles
| const { ApolloServer, gql } = require("apollo-server"); | |
| const { MongoClient, ObjectID } = require("mongodb"); | |
| const typeDefs = gql` | |
| type Photo { | |
| id: ID! | |
| name: String! | |
| description: String | |
| category: PhotoCategory! | |
| url: String |
| const express = require("express"); | |
| const expressPlayground = require("graphql-playground-middleware-express") | |
| .default; | |
| const { ApolloServer, gql, PubSub } = require("apollo-server-express"); | |
| const { MongoClient } = require("mongodb"); | |
| const { createServer } = require("http"); | |
| const path = require("path"); | |
| const { authorizeWithGithub, generateFakeUsers, uploadFile } = require("./lib"); | |
| const typeDefs = gql` |
Practice with these Queries!
| ```javascript | |
| const { ApolloServer } = require("apollo-server"); | |
| const typeDefs = ` | |
| type Query { | |
| "Count of total days skied during a season" | |
| totalDays: Int | |
| } | |
| type Mutation { |