File size: 550 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @flow

export const READ_RUN_ERROR = `Do not call .run() on the query passed to createReadQuery!

Bad: db.table('users').get(userId).run()
Good: db.table('users').get(userId)

If you need to post-process the query data (.run().then()), use the \`process\` hook.
`;

export const WRITE_RUN_ERROR = `Don't forget to call .run() on the query passed to createWriteQuery!

Bad: db.table('users').get(userId)
Good: db.table('users').get(userId).run()

If you need to post-process the result, simply use .then()! \`.run().then(result => /* ... */)!\`
`;