apollo-server-constraint-directive:使用指令检查GraphQL输入字段

时间:2021-05-12 12:39:42
【文件属性】:
文件名称:apollo-server-constraint-directive:使用指令检查GraphQL输入字段
文件大小:177KB
文件格式:ZIP
更新时间:2021-05-12 12:39:42
JavaScript 阿波罗服务器约束指令 允许使用@constraint作为指令来验证输入和输出数据。 该模块用于 ,并支持最新的版本2。 它主要基于来自的模块,该模块仅适用于Apollo版本1。 该模块受和OpenAPI的启发 如果您正在寻找游乐场结帐,请使用此项目 。 安装 npm install apollo-server-constraint-directive 用法 const { ApolloServer , makeExecutableSchema , gql } = require ( 'apollo-server' ) const ConstraintDirective = require ( 'apollo-server-constraint-directive' ) const schemaDirectives = { constraint : ConstraintDirecti
【文件预览】:
apollo-server-constraint-directive-master
----.eslintrc(38B)
----scalars()
--------formats()
--------numberValidation.js(2KB)
--------stringValidation.js(3KB)
--------validationError.js(320B)
----index.js(1KB)
----package.json(1KB)
----.github()
--------ISSUE_TEMPLATE()
--------workflows()
----test()
--------string.test.js(32KB)
--------int.test.js(13KB)
--------__snapshots__()
--------__setup.js(476B)
----jest.config.js(222B)
----LICENSE(762B)
----package-lock.json(613KB)
----.npmignore(14B)
----.gitignore(3KB)
----CHANGELOG.md(1KB)
----lib()
--------error.js(336B)
----CODE_OF_CONDUCT.md(3KB)
----README.md(5KB)
----.gitattributes(12B)

网友评论