Skip to content

Commit

Permalink
Add sideEffects: false to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Apr 15, 2022
1 parent f010922 commit 14e8155
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"main": "./dist/index.node.js",
"types": "./dist/index.node.d.ts",
"license": "Apache-2.0",
"sideEffects": false,
"files": [
"/dist"
],
Expand Down
1 change: 1 addition & 0 deletions qb/dbschema/default.esdl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module default {

scalar type Genre extending enum<Horror, Action, RomCom>;
Expand Down
10 changes: 8 additions & 2 deletions qb/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ import {setupTests} from "./test/setupTeardown";
import e, * as types from "./dbschema/edgeql-js/index";

async function run() {
const {client} = await setupTests();
const query = e.select("Hello world!");
const {client, data} = await setupTests();
const query = e.update(e.Movie, movie => ({
filter: e.op(movie.id, "=", e.uuid(data.the_avengers.id)),
set: {
title: "The Avngrrs",
},
}));

console.log(query.toEdgeQL());
const result = await query.run(client);
console.log(result);
Expand Down

0 comments on commit 14e8155

Please sign in to comment.