mirror of
https://github.com/seigler/graphql-playground
synced 2025-07-27 09:36:09 +00:00
9 lines
194 B
JavaScript
9 lines
194 B
JavaScript
const mongoose = require('mongoose');
|
|
const { Schema } = mongoose;
|
|
|
|
const authorSchema = new Schema({
|
|
name: String,
|
|
age: Number
|
|
});
|
|
|
|
module.exports = mongoose.model('Author', authorSchema);
|