express-graphql-example:示例项目如何使用Express和GraphQL-源码

上传者: 42099906 | 上传时间: 2021-01-30 23:04:28 | 文件大小: 125KB | 文件类型: ZIP
Express,GraphQL示例 如何运行项目 安装依赖项: yarn # or using npm npm install 创建src/config.ts或重命名src/config.example.js并使用您的凭据更新文件: export default { port : 3010 , database : { type : 'mysql' , connection : { database : '' , host : '' , password : '' , user : '' , } , /* * Migrations run on every start of the application. * If you initialized the database manually (from the database.sql file), * you don't need this. */ migrations : { d

文件下载

资源详情

[{"title":"( 59 个子文件 125KB ) express-graphql-example:示例项目如何使用Express和GraphQL-源码","children":[{"title":"express-graphql-example-master","children":[{"title":".dockerignore <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"test.yml <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"lint.yml <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"knexfile.js <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 223.43KB </span>","children":null,"spread":false},{"title":".eslintrc.js <span style='color:#111;'> 260B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"config.example.ts <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"functions.ts <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 1013B </span>","children":null,"spread":false},{"title":"migrations","children":[{"title":"20200701215418_init.ts <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"setup.ts <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"repositories","children":[{"title":"QuoteKnexRepository.ts <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"AuthorRepository.ts <span style='color:#111;'> 707B </span>","children":null,"spread":false},{"title":"AuthorKnexRepository.ts <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"QuoteRepository.ts <span style='color:#111;'> 407B </span>","children":null,"spread":false}],"spread":true},{"title":"types","children":[{"title":"index.d.ts <span style='color:#111;'> 262B </span>","children":null,"spread":false}],"spread":true},{"title":"__tests__","children":[{"title":"quotesquery.test.ts <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"authorquery.test.ts <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"authorsquery.test.ts <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"createauthormutation.test.ts <span style='color:#111;'> 1024B </span>","children":null,"spread":false},{"title":"quotequery.test.ts <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"context","children":[{"title":"Context.ts <span style='color:#111;'> 459B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 413B </span>","children":null,"spread":false}],"spread":false},{"title":"database.ts <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"middlewares","children":[{"title":"cors.ts <span style='color:#111;'> 677B </span>","children":null,"spread":false},{"title":"reponseTime.ts <span style='color:#111;'> 338B </span>","children":null,"spread":false}],"spread":false},{"title":"loaders","children":[{"title":"authorLoader.ts <span style='color:#111;'> 452B </span>","children":null,"spread":false}],"spread":false},{"title":"seeds","children":[{"title":"init.ts <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":false},{"title":"schema","children":[{"title":"index.ts <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"query.ts <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"mutation.ts <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"queries","children":[{"title":"quote.ts <span style='color:#111;'> 384B </span>","children":null,"spread":false},{"title":"authors.ts <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"nodesToEdges.ts <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"author.ts <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"quotes.ts <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"toConnection.ts <span style='color:#111;'> 355B </span>","children":null,"spread":false}],"spread":false},{"title":"types","children":[{"title":"pageInfo.ts <span style='color:#111;'> 741B </span>","children":null,"spread":false},{"title":"quote.ts <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"inputs","children":[{"title":"newAuthor.ts <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"authorsOrder.ts <span style='color:#111;'> 439B </span>","children":null,"spread":false}],"spread":false},{"title":"enums","children":[{"title":"direction.ts <span style='color:#111;'> 405B </span>","children":null,"spread":false},{"title":"authorsOrderField.ts <span style='color:#111;'> 218B </span>","children":null,"spread":false}],"spread":false},{"title":"edges","children":[{"title":"quoteEdge.ts <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"authorEdge.ts <span style='color:#111;'> 434B </span>","children":null,"spread":false}],"spread":false},{"title":"author.ts <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"connections","children":[{"title":"quoteConnection.ts <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"authorConnection.ts <span style='color:#111;'> 613B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"mutations","children":[{"title":"createAuthor.ts <span style='color:#111;'> 467B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"Dockerfile <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"database.sql <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"jest.config.js <span style='color:#111;'> 139B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"EXAMPLES.md <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 992B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明