This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |