I am doing a code along project of GRAND stack real-estate-app "https://www.youtube.com/watch?v=WB--CkjKJMQ&list=PL9Hl4pk2FsvUjfSsxLolVToO5t1hwEIKK&index=2"
I have installed all the dependencies and configured the database v3.5.18
and set the configurations in .env
file.
After that I ran the inferschema:write
script.
the schema.graphql file was updated with the following code
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!
}
Then when I run the server, it I gives me the following error
C:\Users<path-to-folder>\practice-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