Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Query option fields does not work for document #595

Closed
ghost opened this issue May 11, 2018 · 0 comments
Closed

Query option fields does not work for document #595

ghost opened this issue May 11, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented May 11, 2018

Call this code on document table

db.mytable.findDoc({}, {
    fields: [id', 'name']
});

And receive next error

[ 'error: column "name" does not exist',
     '    at Connection.parseE (/Users/igor/project/node_modules/pg/lib/connection.js:545:11)',
     '    at Connection.parseMessage (/Users/igor/project/node_modules/pg/lib/connection.js:370:19)',
     '    at Socket.<anonymous> (/Users/igor/project/node_modules/pg/lib/connection.js:113:22)',
     '    at emitOne (events.js:116:13)',
     '    at Socket.emit (events.js:211:7)',
     '    at addChunk (_stream_readable.js:263:12)',
     '    at readableAddChunk (_stream_readable.js:250:11)',
     '    at Socket.Readable.push (_stream_readable.js:208:10)',
     '    at TCP.onread (net.js:607:20)' ]

Node.js: 8.11.1
Massive: 4.7.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants