I have Companies and Assets nodes with a relationship, HAS_ASSET that has a property 'workingInterest':
(c:Company)-[:HAS_ASSET]->(a:Asset)
if I define my schema like so:
Asset {
assetId: Int
name: String
companies: [Company] @relation(name:"HAS_ASSET", direction: IN)
}
type Company {
name: String
assets: [Asset] @relation(name: "HAS_ASSET", direction:OUT)
}
all is well except I need the 'workingInterest', so I tried:
Asset {
assetId: Int
name: String
companies: [AssetDetail]
}
type Company {
name: String
assets: [AssetDetail]
}
type AssetDetail @relation(name: "HAS_ASSET") {
from: Company
to: Asset
workingInterest: Float
}
I get an empty array for assets in Company and companies in Asset. Any suggestions on how to debug this would be appreciated.