Skip to content

Instantly share code, notes, and snippets.

var mongoose = require("mongoose");
var mealSchema = mongoose.Schema({
name: String,
upvotes: { type: Number },
downvotes: { type: Number },
favourited_by: [{ type: mongoose.Schema.ObjectId, ref: 'User' }],
price: Number,
remove_for_safe: [{ type: String }],
add_for_taste: [{ type: String }],
@tascott
tascott / app.js
Created April 17, 2020 10:08
Seed data
import React from 'react';
import styled from 'styled-components';
import Book from './Book';
import Search from './Search';
import booksData from './booksData';
import booksData2 from './booksData';
import GlobalStyle from './theme/globalStyle'
booksData[0].id = 20