在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):betaflag/graphql-server-scaffolding开源软件地址(OpenSource Url):https://github.com/betaflag/graphql-server-scaffolding开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):This repository contains a few examples of directory structures for using GraphQL with Apollo Server in Node.js. minimalThis is the shortest version with only one file to run ( role-orientedThis is a classic directory structure seen in many frameworks. The files are organized by their roles (models, resolvers, type definitions). Its main benefit is to quickly get the picture of all files for specific roles. domain-orientedThis is also a classic but it's less common. Instead of organizing the files in roles, they are organized by business domain. For example, the business domain of books contains all its data, models, resolvers and schema. The principal benefit of this structure is its modularity. It's generally up to you to define your directory structure for your projects. Picking the right one from the start is tricky but you can always change it along the way (although that could also be tricky!). Feel free to open issues to discuss pros/cons to add here and to suggest other directory structures. Contributions are welcomed. Twitter @betaflag Medium @betaflag |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论