# Neo4j-grapql-js custom cypher query

**URL:** <https://community.neo4j.com/t/neo4j-grapql-js-custom-cypher-query/5017>\
**Category:** Drivers & Stacks\
**Tags:** grandstack\
**Created:** [February 12, 2019, 3:07pm UTC](https://community.neo4j.com/t/neo4j-grapql-js-custom-cypher-query/5017 "2019-02-12T15:07:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MuddyBootsCode](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/muddybootscode/32/10330_2.png) [@MuddyBootsCode](https://community.neo4j.com/u/MuddyBootsCode)\
**Post date:** [February 12, 2019, 4:33pm UTC](https://community.neo4j.com/t/neo4j-grapql-js-custom-cypher-query/5017/4 "2019-02-12T16:33:00Z")

</div>

> [@MuddyBootsCode](#):
>
> type Query { mineralTotal(name: String): Float @cypher ( statement: "MATCH (:Tract)\<-[r:MINERAL\_OWNERSHIP]-(:Owner {name: $name}) return sum(r.net\_mineral\_acres)" ) }

I went ahead and tried this to see if it would work and it did not. I think that it has to return a type to be a valid query.

---

_[View the full topic](https://community.neo4j.com/t/neo4j-grapql-js-custom-cypher-query/5017)._
