Skip to content

Commit 2b0c867

Browse files
committed
Improve documentation metadata.
1 parent df52dc4 commit 2b0c867

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

machines/send-native-query.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ module.exports = {
1313
require('../constants/connection.input'),
1414

1515
nativeQuery: {
16-
description: 'A native query for the PostgreSQL database.',
17-
extendedDescription: 'This is oftentimes compiled from Waterline query syntax using "Compile statement", however it could also originate from userland code.',
16+
description: 'A SQL statement as a string (or to use parameterized queries, this should be provided as a dictionary).',
17+
extendedDescription: 'If provided as a dictionary, this should contain `sql` (the SQL statement string; e.g. \'SELECT * FROM dogs WHERE name = $1\') as well as an array of `bindings` (e.g. [\'Rover\']).',
18+
moreInfoUrl: 'https://github.com/brianc/node-postgres/wiki/Prepared-Statements#parameterized-queries',
19+
whereToGet: {
20+
description: 'This is oftentimes compiled from Waterline query syntax using "Compile statement", however it could also originate from userland code.',
21+
},
1822
example: '*',
19-
moreInfoUrl: 'https://github.com/brianc/node-postgres/wiki/Query#result-object',
2023
required: true
2124
},
2225

@@ -32,7 +35,7 @@ module.exports = {
3235
description: 'The native query was executed successfully.',
3336
outputVariableName: 'report',
3437
outputDescription: 'The `result` property is the result data the database sent back. The `meta` property is reserved for custom driver-specific extensions.',
35-
moreInfoUrl: 'https://github.com/brianc/node-postgres/wiki',
38+
moreInfoUrl: 'https://github.com/brianc/node-postgres/wiki/Query#result-object',
3639
example: {
3740
result: '*',
3841
meta: '==='

0 commit comments

Comments
 (0)