mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
b2d65d16d3
* Allow `_inc` to update other numeric types in addition to integers * Add support for PostgreSQL's `money` field type * Add support for _inc on money types * Add note of generalized `_inc` support to changelog
42 lines
722 B
YAML
42 lines
722 B
YAML
type: bulk
|
|
args:
|
|
|
|
#Insert Author table data
|
|
- type: insert
|
|
args:
|
|
table: author
|
|
objects:
|
|
- name: Author 1
|
|
info:
|
|
age: 23
|
|
location:
|
|
type: Point
|
|
coordinates:
|
|
- -118.4079
|
|
- 33.9434
|
|
- name: Author 2
|
|
|
|
#Insert Person table data
|
|
- type: insert
|
|
args:
|
|
table: person
|
|
objects:
|
|
- details:
|
|
name:
|
|
first: foo
|
|
last: bar
|
|
address: foobar
|
|
|
|
#Insert numerics table data
|
|
- type: insert
|
|
args:
|
|
table: numerics
|
|
objects:
|
|
- num_smallint: 12345
|
|
num_integer: 12345
|
|
num_bigint: 12345
|
|
num_real: 12345.67
|
|
num_double: 12345.67
|
|
num_money: 12345.67
|
|
num_numeric: 12345.67
|