【文件属性】:
文件名称:graphql-example:Toptal博客文章的GraphQL示例项目
文件大小:41KB
文件格式:ZIP
更新时间:2021-02-06 00:27:26
graphql rest-api RESTAPIJavaScript
graphql-example
Toptal博客文章的GraphQL示例项目: ://www.toptal.com/api-development/graphql-vs-rest-tutorial#utilize-unreal-developers-today
入门
git clone https://github.com/amaurymartiny/graphql-example
cd graphql-example
npm install
npm run dev
您应该能够看到该应用程序在。
信息
models文件夹包含三个模型:User,Project和Task。 它们是使用seq
【文件预览】:
graphql-example-master
----.gitignore(2KB)
----README.md(1KB)
----package.json(851B)
----graphql()
--------resolvers.js(518B)
--------typeDefs.js(1KB)
----models()
--------user.model.js(340B)
--------seed.js(2KB)
--------task.model.js(283B)
--------project.model.js(319B)
--------index.js(708B)
----rest()
--------routes()
--------controllers()
----.babelrc(29B)
----index.js(745B)
----yarn.lock(108KB)
----db.sqlite(20KB)