-
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Matt Gilson <mgilson@lat.ai>
- Loading branch information
Showing
6 changed files
with
89 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Release type: patch | ||
|
||
This fixes a bug where codegen would choke trying to find a field in the schema for a generic type. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
query ListLifeGeneric { | ||
listLife { | ||
items1 { | ||
name | ||
age | ||
} | ||
items2 { | ||
name | ||
age | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from typing import List | ||
|
||
class ListLifeGenericResultListLifeItems1: | ||
name: str | ||
age: int | ||
|
||
class ListLifeGenericResultListLifeItems2: | ||
name: str | ||
age: int | ||
|
||
class ListLifeGenericResultListLife: | ||
items1: List[ListLifeGenericResultListLifeItems1] | ||
items2: List[ListLifeGenericResultListLifeItems2] | ||
|
||
class ListLifeGenericResult: | ||
list_life: ListLifeGenericResultListLife |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
type ListLifeGenericResultListLifeItems1 = { | ||
name: string | ||
age: number | ||
} | ||
|
||
type ListLifeGenericResultListLifeItems2 = { | ||
name: string | ||
age: number | ||
} | ||
|
||
type ListLifeGenericResultListLife = { | ||
items1: ListLifeGenericResultListLifeItems1[] | ||
items2: ListLifeGenericResultListLifeItems2[] | ||
} | ||
|
||
type ListLifeGenericResult = { | ||
list_life: ListLifeGenericResultListLife | ||
} |