Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/typescript/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ Previously we added 4 root GraphQL queries:
* `postDelete(id: Int): Boolean`

Logic that will handle those queries must be defined inside controller.
Create a new controller inside `src/controller/PostController.ts` file:
Create a new controller inside `src/schema/controller/PostController.ts` file:

```typescript
import {Controller, Query, Mutation} from "vesper";
import {EntityManager} from "typeorm";
import {Post} from "../entity/Post";
import {Post} from "../../entity/Post";

@Controller()
export class PostController {
Expand Down Expand Up @@ -214,7 +214,7 @@ Now we only need to bootstrap our Vesper application. Let's create a `src/index.

```typescript
import {bootstrap} from "vesper";
import {PostController} from "./controller/PostController";
import {PostController} from "./schema/controller/PostController";
import {Post} from "./entity/Post";

bootstrap({
Expand Down Expand Up @@ -329,4 +329,4 @@ Run following queries to test your new GraphQL API:
```

Now you are ready to read a more [advanced tutorial](./advanced-tutorial.md).
Example repository for this sample is available [here](https://github.com/graphframework/typescript-simple-example).
Example repository for this sample is available [here](https://github.com/graphframework/typescript-simple-example).