Skip to content

Commit b1ddb55

Browse files
docs: update
1 parent 7b81ab8 commit b1ddb55

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,17 @@ pnpm add nitro-graphql@beta graphql-yoga graphql graphql-config
3636

3737
```ts
3838
// nitro.config.ts
39+
import { defineConfig } from 'nitro'
3940
import graphql from 'nitro-graphql'
40-
import { defineNitroConfig } from 'nitro/config'
4141

42-
export default defineNitroConfig({
43-
modules: [graphql({ framework: 'graphql-yoga' })],
42+
export default defineConfig({
43+
serverDir: './',
44+
modules: [
45+
graphql({
46+
framework: 'graphql-yoga',
47+
serverDir: './',
48+
}),
49+
],
4450
})
4551
```
4652

examples/nitro/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Nitro GraphQL Starter
22

3-
Minimal Nitro + GraphQL örneği.
3+
Minimal Nitro + GraphQL example.
44

5-
## Kurulum
5+
## Installation
66

77
```bash
88
pnpm install
@@ -11,11 +11,11 @@ pnpm dev
1111

1212
GraphQL Playground: http://localhost:3000/api/graphql
1313

14-
## Örnek Sorgular
14+
## Example Queries
1515

1616
```graphql
1717
query {
1818
hello
19-
greeting(name: "Dünya")
19+
greeting(name: "World")
2020
}
2121
```

0 commit comments

Comments
 (0)