graphql-constraint-directive 允许使用@constraint作为指令来验证输入数据。 受和OpenAPI的启发 安装 npm install graphql-constraint-directive 用法 const { constraintDirective , constraintDirectiveTypeDefs } = require ( 'graphql-constraint-directive' ) const express = require ( 'express' ) const { ApolloServer } = require ( 'apo