Hi,
im a fairly inexperienced coder so this question might be obvious to u guys.
Currently trying to set up the schema with makeAugmentedSchema, but I want to create the resolver functions and queries myself (both for a later purpose in the app but also just for practice and learning).
So the Q: Why does 1 work but not 2?
1.
openTrades(isOpen: Boolean): [Trade]
@cypher(
statement: "MATCH (t:Trade) WHERE t.isOpen = $isOpen RETURN t"
)
2.
openTrades: [Trade]
@cypher(
statement: "MATCH (t:Trade {isOpen: true}) RETURN t"
)