Typical Mongo Service Route
mongodb://localhost:27017/pet-library
Installing mongo
// performers.json | |
[ | |
{ "id": "rc5HXuXIb", "name": "Beyonce" }, | |
{ "id": "gXMuonvEqD", "name": "Enya" } | |
] | |
// songs.json | |
[ | |
{ | |
"id": "M8JsFEqv5z", |
```javascript | |
const { ApolloServer } = require("apollo-server"); | |
const typeDefs = ` | |
type Query { | |
"Count of total days skied during a season" | |
totalDays: Int | |
} | |
type Mutation { |
Practice with these Queries!
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` |
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 |
Here are a few of my favorite resources for UX!
UX Articles
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 { |