, title: “Разрешение на использование” , validDue: Date (“11/11/11”) , by: ObjectId (“348f1f7bcf86cd799434893”) , for: [ObjectId (“348f1f7bcf86cd799434893”) , ... ] ... }); db.documents.find({title: {$regex: /^М/}}).sort({title: 1}); MATCH (grantedBy :Organization :Inspection {name: “РЧС”}) MATCH(issuedFor :Organization :PublicRadio {name: “Просто Радио”}) CREATE (issuedFor) - [:PERMIT] -> (:Document :Permission {title: “РИ”, ...}) -[:ISSUED_BY]->(grantedBy) MATCH(myPermission :Document) - [:PERMIT] -> (justRadio: PublicRadio{name: “Просто Радио”}) RETURN myPermission.title, myPermission.validDue ORDER BY myPermission.validDue