Skip to content

Commit

Permalink
Add docs on numeric data type
Browse files Browse the repository at this point in the history
  • Loading branch information
ssh24 committed Jun 23, 2017
1 parent b36ae40 commit cdf51c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ See [LoopBack types](http://loopback.io/doc/en/lb3/LoopBack-types.html) for de
</tbody>
</table>

## Numeric Data Type

**Note**: The [node.js driver for postgres](https://github.com/brianc/node-postgres) by default casts `Numeric` type as a string on `GET` operation. This is to avoid _data precision loss_ since `Numeric` types in postgres cannot be safely converted to JavaScript `Number`.

For details, see the corresponding [driver issue](https://github.com/brianc/node-pg-types/issues/28).

## Discovery and auto-migration

### Model discovery
Expand Down

0 comments on commit cdf51c3

Please sign in to comment.