integration-tests
Josha von Gizycki 6 years ago
parent 2beac8fc47
commit 33bda110be

@ -22,11 +22,10 @@
ORDER BY a.name") ORDER BY a.name")
(defn find-by-schema! [schema-uuid] (defn find-by-schema! [schema-uuid]
(->> (map :a
(neo4j/exec-query! (neo4j/exec-query!
findy-by-schema findy-by-schema
{:uuid schema-uuid}) {:uuid schema-uuid})))
(map :a)))
(neo4j/defquery create-new (neo4j/defquery create-new
"MATCH (s:schema {uuid:{schema_uuid}}), "MATCH (s:schema {uuid:{schema_uuid}}),

@ -15,11 +15,10 @@
ORDER BY i.updated_at DESC") ORDER BY i.updated_at DESC")
(defn find-by-schema! [schema-uuid] (defn find-by-schema! [schema-uuid]
(->> (map :i
(neo4j/exec-query! (neo4j/exec-query!
findy-by-schema findy-by-schema
{:uuid schema-uuid}) {:uuid schema-uuid})))
(map :i)))
(neo4j/defquery create-instance (neo4j/defquery create-instance
"MATCH (s:schema {uuid:{schema_uuid}}) "MATCH (s:schema {uuid:{schema_uuid}})

@ -20,11 +20,10 @@
ORDER BY s.name") ORDER BY s.name")
(defn all-created-by! [user-uuid] (defn all-created-by! [user-uuid]
(->> (map :s
(neo4j/exec-query! (neo4j/exec-query!
all-created-by all-created-by
{:uuid user-uuid}) {:uuid user-uuid})))
(map :s)))
(neo4j/defquery (neo4j/defquery
all all

Loading…
Cancel
Save