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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more