错误:名称为 "Long" 的类型不存在



我正在做GRAND stack房地产应用程序的代码开发项目"https://www.youtube.com/watch?v=WB--CkjJMQ&list=PL9Hl4pk2FsvUjfSsxLolVToO5t1hwEIKK&index=2";

我已经安装了所有的依赖项,并配置了数据库v3.5.18,并在.env文件中设置了配置。

之后,我运行了inferschema:write脚本。

schema.graphql文件已更新为以下代码

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<文件夹的路径>\实践GRAND->STACK\realEstateApp\api\node_modules\graphql compose\lib\TypeStorage.js:44

throw new Error(`Type with name ${(0, _misc.inspect)(typeName)} does not exists`);
Error: Type with name "Long" does not exists

将标量Long添加到schema.graphql应该可以解决这个问题,但如果您严格按照youTube使用数据库v3.5.18 ,则会出现另一个问题

驱动程序连接到不支持多个数据库的数据库。请升级到neo4j 4.0.0或更高版本以使用此功能

相关内容

最新更新