Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
Is not possible to add a field using Bytes filetype.
VS Code throws an error on the 'Bytes' parameter
Argument of type '"Bytes"' is not assignable to parameter of type 'TYPE | undefined'.ts(2345)
Steps to reproduce
const schema = new Parse.Schema('Contact')
schema.addField('bytesField', 'Bytes')
schema.update().then((result) => {
console.log(result)
})
I guess we need something like Parse-Swift feature.
Actual Outcome
On console.log Uncaught (in promise) Error: Bytes is not a valid type.
Expected Outcome
Not get the error and return the object
Environment
Local environment, using parse-server from the npm
Server
- Parse Server version:
latest
- Operating system:
macOS Monterrey
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Local
Database
- System (MongoDB or Postgres):
Postgres
- Database version:
14
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
local
Client
- Parse JS SDK version:
latest
Logs
https://community.parseplatform.org/t/saving-byte-data-to-parseobject/1804/4
parse-community/Parse-Swift#190
Parse-SDK-JS/integration/test/ParseObjectTest.js
Lines 1365 to 1379 in ffc523f