【文件属性】:
文件名称:静态类型的graphql:创建没有类型安全性妥协的graphql后端
文件大小:194KB
文件格式:ZIP
更新时间:2021-02-17 03:18:07
TypeScript
欢迎使用@ statically-typed-graphql :waving_hand:
在TypeScript中使用零类型安全妥协创建代码优先的graphql后端。
:warning_selector: 免责声明:这是一个非常年轻且不稳定的库。 我们仍然在v0 。 我们有一个非常强大的核心,但一切都会随时更改。
安装
npm install @statically-typed-graphql/core
:warning_selector: graphql是对等依赖项
例子
转到目录以查看演示
快速开始
import { t , SchemaBuilder } from '@statically-typed-graphql/core' ;
import { ApolloServer } from 'apollo-server-express' ;
import express from 'express' ;
const Membership = t . enum
【文件预览】:
statically-typed-graphql-master
----package.json(471B)
----package-lock.json(370KB)
----lerna.json(63B)
----.eslintrc.js(869B)
----tsconfig.json(449B)
----.gitignore(3KB)
----.prettierrc.js(114B)
----README.md(18KB)
----packages()
--------core()
--------examples()
----development-notes.md(10KB)
----.vscode()
--------launch.json(637B)
--------settings.json(33B)