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

Exception when object field not included in fields list of find or findOne #34

Open
1 task
johnsoftek opened this issue Feb 26, 2017 · 0 comments
Open
1 task

Comments

@johnsoftek
Copy link

johnsoftek commented Feb 26, 2017

Bug or feature request

  • [X ] Bug
  • Feature request

Description of feature (or steps to reproduce if bug)

  1. Define a model with {field1: {type: 'number}, field2: {type: object'}}
  2. Create a model record
  3. Retrieve the model record with fields: ['field1']

Link to sample repo to reproduce issue (if bug)

https://github.com/aams/loopback-connector-sqlite3

Expected result

No crash

Actual result (if bug)

Exception "Uncaught SyntaxError: Unexpected token u in JSON at position 0"

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

aams pushed a commit to aams/loopback-connector-sqlite3 that referenced this issue Feb 26, 2017
aams pushed a commit to aams/loopback-connector-sqlite3 that referenced this issue Feb 26, 2017
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