- Modified privacywrite query with graphLookup:
$graphLookup: {
from: "projects",
startWith: "$id_main_project",
connectFromField: "id_main_project",
connectToField: "_id",
as: "ris",
restrictSearchWithMatch: { $or: [{ privacyread: server_constants.Privacy.all }, { userId: userId }] }
}
},
{ $match: { "ris.privacyread": { $exists: true } } },
This commit is contained in:
@@ -81,7 +81,7 @@ const todos = [{
|
||||
descr: "Primo Task Esempio",
|
||||
enableExpiring: false,
|
||||
expiring_at: new Date(),
|
||||
id_prev: "0",
|
||||
id_prev: null,
|
||||
modified: false,
|
||||
modify_at: new Date(),
|
||||
pos: 1,
|
||||
@@ -97,7 +97,7 @@ const todos = [{
|
||||
descr: "Secondo Task Esempio",
|
||||
enableExpiring: false,
|
||||
expiring_at: new Date(),
|
||||
id_prev: "1",
|
||||
// id_prev: "1",
|
||||
modified: false,
|
||||
modify_at: new Date(),
|
||||
pos: 2,
|
||||
@@ -113,7 +113,7 @@ const todos = [{
|
||||
descr: "Terzo Task Esempio",
|
||||
enableExpiring: false,
|
||||
expiring_at: new Date(),
|
||||
id_prev: "1",
|
||||
// id_prev: "1",
|
||||
modified: false,
|
||||
modify_at: new Date(),
|
||||
pos: 3,
|
||||
@@ -129,7 +129,7 @@ const todos = [{
|
||||
descr: "Nuovo Quarto Task Esempio da Inserire",
|
||||
enableExpiring: false,
|
||||
expiring_at: new Date(),
|
||||
id_prev: "2",
|
||||
// id_prev: "2",
|
||||
modified: false,
|
||||
modify_at: new Date(),
|
||||
pos: 4,
|
||||
|
||||
Reference in New Issue
Block a user