Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Buffer property return TEXT instead of buffer #43

@wuzhuobin

Description

@wuzhuobin

Bug or feature request

  • Bug
  • Feature request

Description of feature (or steps to reproduce if bug)

Currently, I am using this with loopback4. But the connector does not provide some type support such as, Buffer or Array. They will all turn into TXET in sqlite3. And more importantly, the 'Buffer' seems to work quite well. When i wrote something to a 'Buffer' property, it will ture in to some TEXT like

{ type: 'Buffer',
  data: 
   [ 120,
     156,
     237,
     205,
     59,
]
```.
And I when i retrieve it is still a JSON object instead of a Buffer object which is different than the TypeScript definition in my model property. While Typescript believe it is a buffer,,,,


### Link to sample repo to reproduce issue (if bug)



### Expected result



### Actual result (if bug)



### Additional information (Node.js version, LoopBack version, etc)


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions