File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff 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'
3940import 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
Original file line number Diff line number Diff line change 11# Nitro GraphQL Starter
22
3- Minimal Nitro + GraphQL örneği .
3+ Minimal Nitro + GraphQL example .
44
5- ## Kurulum
5+ ## Installation
66
77``` bash
88pnpm install
@@ -11,11 +11,11 @@ pnpm dev
1111
1212GraphQL Playground: http://localhost:3000/api/graphql
1313
14- ## Örnek Sorgular
14+ ## Example Queries
1515
1616``` graphql
1717query {
1818 hello
19- greeting (name : " Dünya " )
19+ greeting (name : " World " )
2020}
2121```
You can’t perform that action at this time.
0 commit comments