Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error when using unset in update methods #387

Open
nozomi-hiragi opened this issue Feb 22, 2023 · 0 comments
Open

Type error when using unset in update methods #387

nozomi-hiragi opened this issue Feb 22, 2023 · 0 comments

Comments

@nozomi-hiragi
Copy link

スクリーンショット 2023-02-22 19 20 36

unsetで型エラーが出ます。
バグでしょうか。
deno側の問題でしょうか。

deno 1.30.3
mongo@v0.31.1

const col = db.collection<TestInterface>("test");
col.updateOne(
  {},
  { $unset: { valueNumber: 1, valueString: 1, valueBoolean: 1 } },
);
col.updateOne(
  {},
  { $unset: { valueNumber: "", valueString: "", valueBoolean: "" } },
);
col.updateOne(
  {},
  { $unset: { valueNumber: true, valueString: true, valueBoolean: true } },
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant