File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
examples/basic-graphql-yoga Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ const Query = g.object()({
1717
1818const schema = new GraphQLSchema ( { query : Query } ) ;
1919
20- const yoga = createYoga ( { schema } ) ;
20+ const yoga = createYoga ( {
21+ schema,
22+ graphiql : { defaultQuery : `query {\n hello\n}` } ,
23+ } ) ;
2124const server = createServer ( yoga ) ;
2225server . listen ( 4000 , ( ) => {
2326 console . info ( "Server is running on http://localhost:4000/graphql" ) ;
Original file line number Diff line number Diff line change 1212 "typescript" : " ^5.8.2"
1313 },
1414 "scripts" : {
15- "dev" : " tsx index.ts" ,
15+ "dev" : " tsx --watch index.ts" ,
1616 "types" : " tsc"
1717 },
1818 "repository" : " https://github.com/Thinkmill/graphql-ts/tree/main/examples/basic-graphql-yoga"
You can’t perform that action at this time.
0 commit comments