0
我有這個對象的數組:搜索嵌套TS
const equipmentSchema = new Schema({
country: { type: String, required: true },
uf: { type: String, required: true },
state: { type: String, required: true },
city: { type: String, required: true },
cp: { type: String },
alias: { type: String },
address: { type: String },
location: { type: String },
vendor: { type: String },
hostname: { type: String, required: true, uppercase: true },
type: { type: String, required: true },
model: { type: String, required: true },
cards: [{
model: { type: String, required: true },
slot: {type: String, required: true },
typePort: { type: String, required: true },
ports: [{
numberPort: { type: Number, required: true },
connector: { type: String },
status: { type: String, required: true },
speedCircuit: { type: String },
serviceType: { type: String },
network: { type: String },
connectedTo: { type: String },
customerName: { type: String },
addressCustomer: { type: String },
lelisID: { type: String },
requester: { type: String },
dateRequester: { type: Date },
carrier: { type: String }
}]
}]
我沒有任何想法我如何通過「客戶名稱」搜索和retrive的所有對象。 (我使用Angular2)
感謝所有!
好極了!謝謝。它完美的作品。 –