‘’‘db.Repository.aggregate([
{
$lookup: {
from: “hello”,
localField: “repository_id”,
foreignField: “id”,
as: “hello_data”
}
},
{
$unwind: “$hello_data”
},
{
$project: {
_id: 0,
repository_id: “$repository_id”,
capacity: “$capacity”,
hello_id: “$hello_data.id”,
hello_name: “$hello_data.name”
}
}
])
db.Repository.aggregate([
{
$lookup: {
from: “hello”,
localField: “Repository_id”,
foreignField: “id”,
as: “hello_data”
}
},
{
$unwind: “$hello_data”
},
{
$project: {
_id: 0,
repository_id: “$Repository_id”,
capacity: “$capacity”,
hello_id: “$hello_data.id”,
hello_name: “$hello_data.name”
}
}
])’‘’
this is my code and it outputs this error.
clone(t={}){const r=t.loc||{};return e({loc:new Position("line"in r?r.line:this.loc.line,"column"in r?r.column:……)} could not be cloned.
What’s wrong here?
Most likely a syntax error in your code. However, the way you published it makes it impossible for us to help you.