Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 猫鼬笔虫_Node.js_Mongodb_Express_Mongoose_Graphql - Fatal编程技术网

Node.js 猫鼬笔虫

Node.js 猫鼬笔虫,node.js,mongodb,express,mongoose,graphql,Node.js,Mongodb,Express,Mongoose,Graphql,我正在用graphql和mongodb创建一个api。在模式中,我正在填充用户 import mongoose,{Schema}来自“mongoose”; const organizationSchema=新的mongoose.Schema( { 用户:[{type:Schema.Types.ObjectId,ref:'User'}], 名称:String, URL名称:字符串 }, {时间戳:true} ); const Organization=mongoose.model('Organi

我正在用graphql和mongodb创建一个api。在模式中,我正在填充用户

import mongoose,{Schema}来自“mongoose”;
const organizationSchema=新的mongoose.Schema(
{
用户:[{type:Schema.Types.ObjectId,ref:'User'}],
名称:String,
URL名称:字符串
},
{时间戳:true}
);
const Organization=mongoose.model('Organization',organizationSchema);
导出默认组织