Skip to content

Commit

Permalink
docs(resolvers): add missing comma in sample code (MichalLytek#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan-mstf authored and MichalLytek committed Feb 2, 2019
1 parent 13165d8 commit ea9c887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class RecipeResolver {
// ...
@Query(returns => [Recipe])
async recipes(
@Arg("title" { nullable: true }) title?: string,
@Arg("servings" { defaultValue: 2 }) servings: number,
@Arg("title", { nullable: true }) title?: string,
@Arg("servings", { defaultValue: 2 }) servings: number,
): Promise<Recipe[]> {
// ...
}
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-0.16.0/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class RecipeResolver {
// ...
@Query(returns => [Recipe])
async recipes(
@Arg("title" { nullable: true }) title?: string,
@Arg("servings" { defaultValue: 2 }) servings: number,
@Arg("title", { nullable: true }) title?: string,
@Arg("servings", { defaultValue: 2 }) servings: number,
): Promise<Recipe[]> {
// ...
}
Expand Down

0 comments on commit ea9c887

Please sign in to comment.