0
我假設這是一個mongo語法的東西。這是從一個流星的應用程序:
const { selectedSectionId } = this.state;
const assignmentsSelector = {
formativeId: this.props.formative._id,
$or: [{ public: true }],
};
if (selectedSectionId && selectedSectionId !== 'all') {
assignmentsSelector.$or.push({ sectionId: selectedSectionId });
}
在上面有什麼$or
?