mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
chore(server): fix logical models tests to parse raw number values
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8223 GitOrigin-RevId: 3a0b0b26b4295f00d84b0032e3c098502a295239
This commit is contained in:
parent
e93d3d2735
commit
8064d6fe2b
@ -82,7 +82,7 @@ tests opts = do
|
||||
code: *query
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -156,7 +156,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
divided:
|
||||
@ -183,7 +183,7 @@ tests opts = do
|
||||
code: "SELECT * FROM dogs WHERE name = {{name"
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -213,7 +213,7 @@ tests opts = do
|
||||
code: *query
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -242,7 +242,7 @@ tests opts = do
|
||||
code: *query
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
nullable: false
|
||||
target_date:
|
||||
type: date
|
||||
@ -268,7 +268,7 @@ tests opts = do
|
||||
code: *query
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -306,7 +306,7 @@ tests opts = do
|
||||
code: *query
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -355,7 +355,7 @@ tests opts = do
|
||||
SELECT thing / 2 AS divided, null as something_nullable FROM stuff
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
description: "Return type description"
|
||||
columns:
|
||||
@ -472,7 +472,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -516,7 +516,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -559,7 +559,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
divided:
|
||||
@ -596,7 +596,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
nullable: false
|
||||
select_permissions:
|
||||
- role: "test"
|
||||
@ -680,7 +680,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
divided:
|
||||
@ -723,7 +723,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
unused:
|
||||
type: int
|
||||
type: integer
|
||||
nullable: false
|
||||
returns:
|
||||
columns:
|
||||
@ -795,7 +795,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
@ -814,7 +814,7 @@ tests opts = do
|
||||
code: *simpleQuery
|
||||
arguments:
|
||||
denominator:
|
||||
type: int
|
||||
type: integer
|
||||
target_date:
|
||||
type: date
|
||||
returns:
|
||||
|
@ -414,7 +414,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
@ -437,7 +437,7 @@ tests opts = do
|
||||
testEnvironment
|
||||
[graphql|
|
||||
query {
|
||||
article_with_excerpt(args: { length: "34" }) {
|
||||
article_with_excerpt(args: { length: 34 }) {
|
||||
id
|
||||
title
|
||||
date
|
||||
@ -485,7 +485,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
@ -515,7 +515,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
@ -538,7 +538,7 @@ tests opts = do
|
||||
testEnvironment
|
||||
[graphql|
|
||||
query {
|
||||
article_with_excerpt_1(args: { length: "34" }) {
|
||||
article_with_excerpt_1(args: { length: 34 }) {
|
||||
excerpt
|
||||
}
|
||||
article_with_excerpt_2(args: { length: "13" }) {
|
||||
@ -585,7 +585,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
@ -608,10 +608,10 @@ tests opts = do
|
||||
testEnvironment
|
||||
[graphql|
|
||||
query {
|
||||
first: article_with_excerpt(args: { length: "34" }) {
|
||||
first: article_with_excerpt(args: { length: 34 }) {
|
||||
excerpt
|
||||
}
|
||||
second: article_with_excerpt(args: { length: "13" }) {
|
||||
second: article_with_excerpt(args: { length: 13 }) {
|
||||
excerpt
|
||||
}
|
||||
}
|
||||
@ -655,7 +655,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
@ -674,7 +674,7 @@ tests opts = do
|
||||
|
||||
let variables =
|
||||
[yaml|
|
||||
length: "34"
|
||||
length: 34
|
||||
|]
|
||||
|
||||
actual :: IO Value
|
||||
@ -682,7 +682,7 @@ tests opts = do
|
||||
GraphqlEngine.postGraphqlWithVariables
|
||||
testEnvironment
|
||||
[graphql|
|
||||
query MyQuery($length: int!) {
|
||||
query MyQuery($length: Int!) {
|
||||
article_with_excerpt(args: { length: $length }) {
|
||||
excerpt
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ tests opts = do
|
||||
code: *spicyQuery
|
||||
arguments:
|
||||
length:
|
||||
type: int
|
||||
type: integer
|
||||
returns:
|
||||
columns:
|
||||
id:
|
||||
|
Loading…
Reference in New Issue
Block a user