-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36bd99e
commit 80d6bd1
Showing
5 changed files
with
30 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
query OptionalListOfPeople { | ||
optionalListOfPeople { | ||
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,8 @@ | ||
from typing import List, Optional | ||
|
||
class OptionalListOfPeopleResultOptionalListOfPeople: | ||
name: str | ||
age: int | ||
|
||
class OptionalListOfPeopleResult: | ||
optional_list_of_people: Optional[List[OptionalListOfPeopleResultOptionalListOfPeople]] |
8 changes: 8 additions & 0 deletions
8
tests/codegen/snapshots/typescript/optional_list_of_people.ts
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,8 @@ | ||
type OptionalListOfPeopleResultOptionalListOfPeople = { | ||
name: string | ||
age: number | ||
} | ||
|
||
type OptionalListOfPeopleResult = { | ||
optional_list_of_people: OptionalListOfPeopleResultOptionalListOfPeople[] | undefined | ||
} |