如何解决错误:名称为“Long”的类型不存在
我正在为 GRAND stack real-estate-app 项目编写代码“https://www.youtube.com/watch?v=WB--CkjKJMQ&list=PL9Hl4pk2FsvUjfSsxLolVToO5t1hwEIKK&index=2”
我已经安装了所有依赖项并配置了数据库 v3.5.18
并在 .env
文件中设置了配置。
之后我运行了 inferschema:write
脚本。
type Property {
_id: Long!
AddressL_1: String
AddressLin: String
Assessment: String
COUNTYCD: Int!
CareOfTaxp: String
Certificat: String
CityStateZ: String
Continuous: Float!
CountyAbbr: String!
CountyName: String!
DbaName: String
FallowAcre: Float!
FarmsiteAc: Float!
ForestAcre: Float!
GISAcres: Float!
GrazingAcr: Float!
IrrigatedA: Float!
LegalDescr: String
Levydistri: String
NonQualAcr: Float!
OwnerAdd_1: String
OwnerAdd_2: String
OwnerAddre: String
OwnerCity: String
OwnerName: String
OwnerState: String
OwnerZipCo: String
PropType: String
PropertyID: Int!
Range: String
SHAPE_Area: Float!
SHAPE_Leng: Float!
Section: String
Subdivisio: String
TaxYear: Int!
TotalAcres: Float!
TotalBuild: Int!
TotalLandV: Int!
TotalValue: Int!
Township: String
WildHayAcr: Float!
id: String!
}
然后当我运行服务器时,它给了我以下错误
C:\Users
throw new Error(`Type with name ${(0,_misc.inspect)(typeName)} does not exists`);
Error: Type with name "Long" does not exists
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。