diff --git a/fixtures/seattle.script b/fixtures/seattle.script index 3c8695b5..a23f5a75 100644 --- a/fixtures/seattle.script +++ b/fixtures/seattle.script @@ -18,3 +18,11 @@ .q [:find ?n . :where [(fulltext $ :community/name "Wallingford") [[?e ?n]]]] .q [:find [?when ...] :where [_ :db/txInstant ?when] :order (asc ?when)] + +.cache :neighborhood/name reverse +.cache :neighborhood/district forward + +.q [:find ?district :where + [?neighborhood :neighborhood/name "Beacon Hill"] + [?neighborhood :neighborhood/district ?d] + [?d :district/name ?district]]