# Can't use an @cypher generated scalar Boolean field as argument in a query

**URL:** <https://community.neo4j.com/t/cant-use-an-cypher-generated-scalar-boolean-field-as-argument-in-a-query/33682>\
**Category:** GraphQL & GRANDstack\
**Tags:** cypher, schema\
**Created:** [February 13, 2021, 9:34pm UTC](https://community.neo4j.com/t/cant-use-an-cypher-generated-scalar-boolean-field-as-argument-in-a-query/33682 "2021-02-13T21:34:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bauerflo77](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/bauerflo77/32/16666_2.png) [@bauerflo77](https://community.neo4j.com/u/bauerflo77)\
**Post date:** [February 13, 2021, 9:34pm UTC](https://community.neo4j.com/t/cant-use-an-cypher-generated-scalar-boolean-field-as-argument-in-a-query/33682/1 "2021-02-13T21:34:01Z")

</div>

Hi,

I have a tree-like structure of the same node type that are connected by a _composed\_of_ relationship. I used the @cypher directive in my schema file to calculate the boolean information if a node _isLeaf_ or not.

If I query all the nodes via graphql or select specific ones by e.g. id everything is fine.

My problem is that I can't use the _isLeaf_ attribute in a query to just get the leaves. The result is empty.

Is it not possible to use a by @cypher directive generated attribute as an attribute in a query?

Thanks for information.
