- <Form @submit="onSubmit" :validation-schema="schema">
+ <Form @submit="onSubmit" :validation-schema="schema" validate-on-mount>
db.collection.aggregate([
{
"$match": {
"roommates": {
"$in": [
1
]
}
}
},
{
"$sort": {
"created_at": -1
},
},
{
"$addFields": {
"to_sum": {
"$cond": {
"if": "$viewed",
"then": 0,
"else": 1,
}
}
},
},
{
"$group": {
"_id": "$roommates",
"user": {
"$first": "$user"
},
"target": {
"$first": "$target"
},
"text": {
"$first": "$text"
},
"created_at": {
"$first": "$created_at"
},
"viewed": {
"$first": "$viewed"
},
"count": {
"$sum": "$to_sum"
}
}
},
{
"$sort": {
"created_at": -1
},
},
{
"$limit": 25
}
])
duplicate field name Key in struct literal
matchFilter := bson.D{
bson.E{
Key: "$match",
Value: bson.D{
bson.E{
Key: "roommates",
Value: bson.D{
bson.E{Key: "$in", Value: []int{123}},
bson.E{Key: "$nin", Value: []int{3123}},
},
},
},
},
}
img[title]:hover:after {
content: attr(title);
// ... стилизуй дальше, как хочешь
}