是否可以在我的graphql架构中将字段定义为Date或JSON?
type Individual {
id: Int
name: String
birthDate: Date
token: JSON
}
Run Code Online (Sandbox Code Playgroud)
实际上服务器正在给我一个错误说:
Type "Date" not found in document.
at ASTDefinitionBuilder._resolveType (****node_modules\graphql\utilities\buildASTSchema.js:134:11)
Run Code Online (Sandbox Code Playgroud)
和JSON一样的错误......
任何的想法 ?