graphql-engine/server/tests-py/queries/v1/select/basic/select_user.yaml
Rakesh Emmadi 91376316f2 breaking: encode bigint and bigserial postgres types as strings in response (fix #633) (#640)
This is breaking change where bigint and bigserial Postgres types will be encoded as GraphQL String types, as opposed to Int as present in earlier releases.

Input types were already encoded as String.

This is achieved by selecting `bigint` and `bigserial` columns as `text`s in the SQL query: `select "big_id"::text ..` instead of `select "big_id" .. `.

Reason for that change is outlined in #633 where JavaScript cannot decode 64 bit Integers.
2018-10-05 10:46:21 +05:30

18 lines
223 B
YAML

url: /v1/query
status: 200
response:
- id: '1'
name: User 1
number: '123456789'
- id: '2'
name: User 2
number: '123456780'
query:
type: select
args:
table: user
columns:
- id
- name
- number