Socket
Socket
Sign inDemoInstall

create-dummy-test-data

Package Overview
Dependencies
1
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

41

cypherQueries/DummyDataQueries.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc