File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -721,17 +721,18 @@ public class Film implements SearchResult {
721
721
// ...
722
722
}
723
723
724
- public class Hero implements Character, SearchResult {
724
+ public interface Character implements SearchResult {
725
725
// ...
726
726
}
727
727
728
- public class Ally implements Character, SearchResult {
728
+ public class Hero implements Character {
729
729
// ...
730
730
}
731
- ----
732
731
733
- TIP: We can also leverage inheritance and have `interface Character extends SearchResult`.
734
- This will result in all implementations of `Character` being added as members of the `SearchResult` union in the schema.
732
+ public class Ally implements Character {
733
+ // ...
734
+ }
735
+ ----
735
736
736
737
Update `GalaxyService` to provide search:
737
738
You can’t perform that action at this time.
0 commit comments