-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow all types in graphql, move to float to prevent overflow (#376)
Signed-off-by: Daniel Henneberger <git@danielhenneberger.com>
- Loading branch information
1 parent
ec0a6d9
commit d79b4a4
Showing
19 changed files
with
168 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...est/resources/snapshots/com/datasqrl/graphql/generate/SchemaGeneratorTest/testAliased.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...test/resources/snapshots/com/datasqrl/graphql/generate/SchemaGeneratorTest/testImport.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
type Product { | ||
productid: Int! | ||
productid: Float! | ||
name: String! | ||
description: String! | ||
category: String! | ||
} | ||
|
||
type Query { | ||
Product(productid: Int, name: String, description: String, category: String): [Product!] | ||
Product(productid: Float, name: String, description: String, category: String): [Product!] | ||
} | ||
|
12 changes: 6 additions & 6 deletions
12
...esources/snapshots/com/datasqrl/graphql/generate/SchemaGeneratorTest/testImportNested.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...m/datasqrl/graphql/generate/SchemaGeneratorTest/testImportWithDifferentCapitalization.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
...snapshots/com/datasqrl/graphql/inference/SchemaInferenceErrorsTest/generateSchemaTest.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
type Orders { | ||
customerid: Int! | ||
entries(discount: Float, productid: Int, quantity: Int, unit_price: Float): [entries!] | ||
id: Int! | ||
customerid: Float! | ||
entries(discount: Float, productid: Float, quantity: Float, unit_price: Float): [entries!] | ||
id: Float! | ||
time: String! | ||
} | ||
|
||
type Product { | ||
category: String! | ||
description: String! | ||
name: String! | ||
productid: Int! | ||
productid: Float! | ||
} | ||
|
||
type Query { | ||
Orders(customerid: Int, id: Int, time: String): [Orders!] | ||
Product(category: String, description: String, name: String, productid: Int): [Product!] | ||
Orders(customerid: Float, id: Float, time: String): [Orders!] | ||
Product(category: String, description: String, name: String, productid: Float): [Product!] | ||
} | ||
|
||
type entries { | ||
discount: Float | ||
parent: Orders! | ||
productid: Int! | ||
quantity: Int! | ||
productid: Float! | ||
quantity: Float! | ||
unit_price: Float! | ||
} | ||
|
6 changes: 0 additions & 6 deletions
6
...apshots/com/datasqrl/graphql/inference/SchemaInferenceErrorsTest/typeNotCoercableTest.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.