Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
transactData = (data, txMsg) => {
datascript.transact(this.conn, data, txMsg);
}
{
':db/id': -2,
name: 'David',
follows: [-3, -1]
},
{
':db/id': -3,
name: 'Jane'
}
];
/**
* Transact in the data, to be stored and indexed by datascript for performant
* querying.
*/
datascript.transact(conn, datoms);
return conn;
};