We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting a non-optional data property to an empty buffer.
I would expect the following test to pass:
const Realm = require("realm"); const realm = new Realm({ schema: [{ name: "Test", properties: { blob: 'data?' }, }], }); realm.write(() => { realm.create("Test", { blob: new ArrayBuffer(0) }) });
This error is thrown:
Error: A non-empty ArrayBuffer, BufferView or Buffer is expected.
Save the code above as index.js in an empty directory and run
index.js
npm init -y && npm install realm && node index.js
The text was updated successfully, but these errors were encountered:
cesarvr
Successfully merging a pull request may close this issue.
Goals
Setting a non-optional data property to an empty buffer.
Expected Results & Code Sample
I would expect the following test to pass:
Actual Results
This error is thrown:
Steps to Reproduce
Save the code above as
index.js
in an empty directory and runVersion of Realm and Tooling
The text was updated successfully, but these errors were encountered: