We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 794e7b7 commit 5ccae2eCopy full SHA for 5ccae2e
examples/basic-graphql-yoga/index.ts
@@ -17,7 +17,10 @@ const Query = g.object()({
17
18
const schema = new GraphQLSchema({ query: Query });
19
20
-const yoga = createYoga({ schema });
+const yoga = createYoga({
21
+ schema,
22
+ graphiql: { defaultQuery: `query {\n hello\n}` },
23
+});
24
const server = createServer(yoga);
25
server.listen(4000, () => {
26
console.info("Server is running on http://localhost:4000/graphql");
examples/basic-graphql-yoga/package.json
@@ -12,7 +12,7 @@
12
"typescript": "^5.8.2"
13
},
14
"scripts": {
15
- "dev": "tsx index.ts",
+ "dev": "tsx --watch index.ts",
16
"types": "tsc"
"repository": "https://github.com/Thinkmill/graphql-ts/tree/main/examples/basic-graphql-yoga"
0 commit comments