Have been trying to follow the Grandstack Movie example schema definitions and apply it to my project, but keep running into an error when I am using the following:
countBySubstring(substring: String): Int!
@cypher(
statement: "MATCH (c:Company) WHERE c.Name CONTAINS $substring RETURN COUNT(c)"
)
Is this approach not possible at the moment. Seems in GraphQL I should be able to simply return an integer representing the count of my label. Am I missing something in the schema def?
Thanks in advance.