-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use file-scoped namespaces for StarWars project (#123)
- Loading branch information
Showing
12 changed files
with
202 additions
and
212 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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
using GraphQL.Types; | ||
using StarWars.Types; | ||
|
||
namespace StarWars | ||
namespace StarWars; | ||
|
||
public class HumanInputType : InputObjectGraphType<Human> | ||
{ | ||
public class HumanInputType : InputObjectGraphType<Human> | ||
public HumanInputType() | ||
{ | ||
public HumanInputType() | ||
{ | ||
Name = "HumanInput"; | ||
Field(x => x.Name); | ||
Field(x => x.HomePlanet, nullable: true); | ||
} | ||
Name = "HumanInput"; | ||
Field(x => x.Name); | ||
Field(x => x.HomePlanet, nullable: true); | ||
} | ||
} |
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
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
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,18 +1,17 @@ | ||
using GraphQL.Types; | ||
|
||
namespace StarWars.Types | ||
namespace StarWars.Types; | ||
|
||
public class CharacterInterface : InterfaceGraphType<StarWarsCharacter> | ||
{ | ||
public class CharacterInterface : InterfaceGraphType<StarWarsCharacter> | ||
public CharacterInterface() | ||
{ | ||
public CharacterInterface() | ||
{ | ||
Name = "Character"; | ||
Name = "Character"; | ||
|
||
Field(d => d.Id).Description("The id of the character."); | ||
Field(d => d.Name, nullable: true).Description("The name of the character."); | ||
Field(d => d.Id).Description("The id of the character."); | ||
Field(d => d.Name, nullable: true).Description("The name of the character."); | ||
|
||
Field<ListGraphType<CharacterInterface>>("friends"); | ||
Field<ListGraphType<EpisodeEnum>>("appearsIn", "Which movie they appear in."); | ||
} | ||
Field<ListGraphType<CharacterInterface>>("friends"); | ||
Field<ListGraphType<EpisodeEnum>>("appearsIn", "Which movie they appear in."); | ||
} | ||
} |
Oops, something went wrong.