Published
Edited
Jul 27, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
result = ds.q( `[:find ?e ?n :where [?e "name" ?n]]`, db2)
Insert cell
namesOfTwoEntities = ds.pull_many( db2, '[ "name" ]', [ 1, 2 ])
Insert cell
relsInDB2 = ds.q( queryEntitiesWithNameAndAge, db2);
Insert cell
relsInDB1 = ds.q( queryEntitiesWithNameAndAge, db1);
Insert cell
Insert cell
Insert cell
db2 = ds.db_with( db1, [ {":db/id": 2, "name": igor.name, "age": igor.age } ]);
Insert cell
db1 = ds.db_with( db0, [ [":db/add", 1, "name", ivan.name], [":db/add", 1, "age", ivan.age] ]);
Insert cell
db0 = ds.empty_db();
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
ds = import('https://cdn.skypack.dev/datascript@1.3.13')
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more