Skip to content

Commit

Permalink
docs(bootstrap): add *.js to glob files pattern (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichard0725 authored and MichalLytek committed Jan 14, 2020
1 parent 6e66faa commit d633ea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ So we can also provide an array of paths to resolver module files instead, which

```typescript
const schema = await buildSchema({
resolvers: [__dirname + "/modules/**/*.resolver.ts", __dirname + "/resolvers/**/*.ts"],
resolvers: [__dirname + "/modules/**/*.resolver.{ts,js}", __dirname + "/resolvers/**/*.{ts,js}"],
});
```

Expand All @@ -54,7 +54,7 @@ import { buildSchema } from "type-graphql";

async function bootstrap() {
const schema = await buildSchema({
resolvers: [__dirname + "/**/*.resolver.ts"],
resolvers: [__dirname + "/**/*.resolver.{ts,js}"],
});

// other initialization code, like creating http server
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-0.17.1/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ So we can also provide an array of paths to resolver module files instead, which

```typescript
const schema = await buildSchema({
resolvers: [__dirname + "/modules/**/*.resolver.ts", __dirname + "/resolvers/**/*.ts"],
resolvers: [__dirname + "/modules/**/*.resolver.{ts,js}", __dirname + "/resolvers/**/*.{ts,js}"],
});
```

Expand All @@ -39,7 +39,7 @@ import { buildSchema } from "type-graphql";

async function bootstrap() {
const schema = await buildSchema({
resolvers: [__dirname + "/**/*.resolver.ts"],
resolvers: [__dirname + "/**/*.resolver.{ts,js}"],
});

// other initialization code, like creating http server
Expand Down

0 comments on commit d633ea9

Please sign in to comment.