graphql-engine/server/tests-py/queries/graphql_query/basic/select_query_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

22 lines
343 B
YAML

description: Simple GraphQL query to fetch items from user table
url: /v1alpha1/graphql
status: 200
response:
data:
user:
- id: '1'
name: User 1
number: '123456789'
- id: '2'
name: User 2
number: '123456780'
query:
query: |
query {
user {
id
name
number
}
}