-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Union and root types to referenced types in JS FrontEnd (#2126)
* Render Operation Definition * Generation of Operation Definition 7 Clean up Swift Scripts * Added import ApolloAPI to templates * Implement Fragment Template + File Generator And change ResponseDict to DataDict in template renderer * Calculate generatedSelectionSetName with merging from parent and type cases * WIP: TypeCase Accessors * fixed errors after rebasing * Move caching of generated seleciton set names to object retained by SelectionSetTemplate * Calculating TypeCase Merged names * Fixing TemplateString new line removal for sections * Render Fragment Container * Render Direct TypeCase SelectionSets * Regenerate AnimalKingdom API * Render Boolean as "Bool" * Missing newline after field selections sets * Add Union and root types to referenced types in JS FrontEnd * Minor fix
- Loading branch information
1 parent
dabe11e
commit ff490d4
Showing
6 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import ApolloAPI | ||
|
||
public final class Query: Object { | ||
override public class var __typename: String { "Query" } | ||
|
||
override public class var __metadata: Metadata { _metadata } | ||
private static let _metadata: Metadata = Metadata(implements: [ | ||
]) | ||
} |
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,11 @@ | ||
import ApolloAPI | ||
|
||
public final class Rat: Object { | ||
override public class var __typename: String { "Rat" } | ||
|
||
override public class var __metadata: Metadata { _metadata } | ||
private static let _metadata: Metadata = Metadata(implements: [ | ||
Animal.self, | ||
Pet.self | ||
]) | ||
} |
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
2 changes: 1 addition & 1 deletion
2
Sources/ApolloCodegenLib/Frontend/dist/ApolloCodegenFrontend.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.