create-dummy-test-data
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -43,11 +43,2 @@ class DummyDataQueries { | ||
WITH n1,n2,dummyPost | ||
OPTIONAL MATCH (n3:User) | ||
WHERE n3.id = dummyPost.tags | ||
WITH n1,n2,n3,dummyPost, | ||
CASE n3.id | ||
WHEN NOT NULL THEN [1] | ||
ELSE [] | ||
END AS array | ||
FOREACH ( item IN array | CREATE (n2)-[:TAGGED{ creationTime: datetime() }]->(n3) ) | ||
WITH n1,n2,dummyPost | ||
RETURN n2 | ||
@@ -167,5 +158,9 @@ `; | ||
MATCH (n2:Post) | ||
WHERE n2.id = dummyPostReport.id | ||
WHERE n2.id = dummyPostReport.reportingId | ||
WITH n1,n2,dummyPostReport | ||
CREATE (n1)-[r:REPORTED{ creationTime: datetime() }]->(n2) | ||
CREATE (n1)-[r:REPORTED{ | ||
id: dummyPostReport.id, | ||
reportText: dummyPostReport.reportText, | ||
creationTime: datetime() | ||
}]->(n2) | ||
WITH n1,n2,r,dummyPostReport | ||
@@ -183,5 +178,9 @@ RETURN r | ||
MATCH (n2:Moment) | ||
WHERE n2.id = dummyMomentReport.id | ||
WHERE n2.id = dummyMomentReport.reportingId | ||
WITH n1,n2,dummyMomentReport | ||
CREATE (n1)-[r:REPORTED{ creationTime: datetime() }]->(n2) | ||
CREATE (n1)-[r:REPORTED{ | ||
id: dummyMomentReport.id, | ||
reportText: dummyMomentReport.reportText, | ||
creationTime: datetime() | ||
}]->(n2) | ||
WITH n1,n2,r,dummyMomentReport | ||
@@ -199,5 +198,9 @@ RETURN r | ||
MATCH (n2:Comment) | ||
WHERE n2.id = dummyCommentReport.id | ||
WHERE n2.id = dummyCommentReport.reportingId | ||
WITH n1,n2,dummyCommentReport | ||
CREATE (n1)-[r:REPORTED{ creationTime: datetime() }]->(n2) | ||
CREATE (n1)-[r:REPORTED{ | ||
id: dummyCommentReport.id, | ||
reportText: dummyCommentReport.reportText, | ||
creationTime: datetime() | ||
}]->(n2) | ||
WITH n1,n2,r,dummyCommentReport | ||
@@ -215,5 +218,9 @@ RETURN r | ||
MATCH (n2:Reply) | ||
WHERE n2.id = dummyReplyReport.id | ||
WHERE n2.id = dummyReplyReport.reportingId | ||
WITH n1,n2,dummyReplyReport | ||
CREATE (n1)-[r:REPORTED{ creationTime: datetime() }]->(n2) | ||
CREATE (n1)-[r:REPORTED{ | ||
id: dummyReplyReport.id, | ||
reportText: dummyReplyReport.reportText, | ||
creationTime: datetime() | ||
}]->(n2) | ||
WITH n1,n2,r,dummyReplyReport | ||
@@ -220,0 +227,0 @@ RETURN r |
{ | ||
"name": "create-dummy-test-data", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Create dummy data for testing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17832
511