您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Christian Ziermann 77b3042c7f first commit 4 年前
.vscode first commit 4 年前
src first commit 4 年前
.gitignore first commit 4 年前
README.md first commit 4 年前
codegen.yml first commit 4 年前
graphql.schema.json first commit 4 年前
nodemon.json first commit 4 年前
package-lock.json first commit 4 年前
package.json first commit 4 年前
tsconfig.json first commit 4 年前

README.md

Prepation

npm init

See More https://graphql-code-generator.com/docs/getting-started/installation

npm add --save graphql or yarn add graphql

npm add --save-dev @graphql-codegen/cli or yarn add -D @graphql-codegen/cli

npx graphql-codegen init

npm add --save-dev @graphql-codegen/typescript or yarn add -D @graphql-codegen/typescript

Server

npm add apollo-server

npm install @types/node --save-dev

npx tsc --init --rootDir src --outDir build \
--esModuleInterop --resolveJsonModule --lib es6 \
--module commonjs --allowJs true --noImplicitAny true

npm install --save-dev ts-node nodemon rimraf

UI

  • init new Angular project ng new graphql-demo