我想做一个搜索文本查询来返回匹配的聊天室,例如老师的名字或老师的姓氏,这将是一个嵌入的文档并将被填充
import pygame
pygame.init()
size = 600, 600
surface = pygame.display.set_mode(size, pygame.RESIZABLE)
surface.fill((255, 255, 255))
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
exit()
pygame.display.update()
这是我到目前为止提出的查询,但我仍然被卡住
var chatRoomSchema = mongoose.Schema({
student: { type: ObjectId, ref: "students" },
teacher: { type: ObjectId, ref: "teachers" },
lastMessage: {
type: String,
required : true,
default: " ",
},
});