Open mneedham opened 5 years ago
Just for clarity: Are you able to run the Cypher query directly, say through Neo4j browser?
Assuming your answer to @Joshfindit is yes… welcome to #144.
Why 144? Follow the advice of @johnymontana by adding a @relation
to your Spend2
type:
type Spending2 {
club: Club @relation(name: "IS_CLUB", direction: "OUT")
country: Country @relation(name: "IS_COUNTRY", direction: "OUT")
moneySpent: Int
moneyReceived: Int
profit: Int
}
Unfortunately, this still doesn't do what you want it to because don't actually have IS_CLUB
and IS_COUNTRY
relationships in your DB. #smashesHeadAgainstWall
At least we can try to solve this project together now.
Given this schema:
With this custom type using a Cypher query:
If I then execute this GraphQL query:
I get the following exception: