Skip to content

Commit 7cd9632

Browse files
Merge pull request #1459 from jaeheonji/patch-1
docs(graphql): remove duplicated file extension in code block
2 parents 3eade68 + b88d690 commit 7cd9632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/graphql/resolvers-map.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ type Query {
539539
Conventionally, we would prefer to decouple these, using names like `getAuthor()` or `getPosts()` for our resolver methods. We can easily do this by passing the mapping name as an argument to the decorator, as shown below:
540540

541541
```typescript
542-
@@filename(authors/authors.resolver.ts)
542+
@@filename(authors/authors.resolver)
543543
@Resolver('Author')
544544
export class AuthorsResolver {
545545
constructor(
@@ -565,7 +565,7 @@ export class AuthorsResolver {
565565
Assuming that we use the schema first approach and have enabled the typings generation feature (with `outputAs: 'class'` as shown in the [previous](/graphql/quick-start) chapter), once you run the application it will generate the following file (in the location you specified in the `GraphQLModule.forRoot()` method. For example, in `src/graphql.ts`)
566566

567567
```typescript
568-
@@filename(graphql.ts)
568+
@@filename(graphql)
569569
export class Author {
570570
id: number;
571571
firstName?: string;

0 commit comments

Comments
 (0)