# GraphQL schema query problem

**URL:** <https://community.neo4j.com/t/graphql-schema-query-problem/21404>\
**Category:** Neo4j Graph Platform\
**Tags:** cypher, graphql\
**Created:** [July 10, 2020, 8:54am UTC](https://community.neo4j.com/t/graphql-schema-query-problem/21404 "2020-07-10T08:54:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasperknudz](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/kasperknudz/32/4545_2.png) [@kasperknudz](https://community.neo4j.com/u/kasperknudz)\
**Post date:** [July 10, 2020, 8:54am UTC](https://community.neo4j.com/t/graphql-schema-query-problem/21404/1 "2020-07-10T08:54:05Z")

</div>

Hi, I am working with parts of the GRANDStack starter project (but changing it a bit for my own project). An issue is that I only get an empty array out of the following query and data:

GraphQL:

```auto
query { Company 
  {
  name
  person {
    firstName

```

And the schema looks like this:

```auto
type Person {
  id: ID!
  name: String
  firstName:String
  lastName:String
  company: Company @relation(name:"position", direction:IN)
}

type Company {
  id: ID!
  name: String
  person: [Person] @relation(name:"position", direction:IN)
  }

```

I am using CSV data from Linkedin so the results we are getting from the GraphQL query above looks like this:

```auto
{
  "data": {
    "Company": [
      {
        "name": "ABBA THE MUSEUM",
        "person": []
      },
      {
        "name": "ZAPLIFY",
        "person": []
      },
      {
        "name": "EVERYTIME FITNESS",
        "person": []
      }

```

---

<div class="post-metadata">

**Author:** ![mdfrenchman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/mdfrenchman/32/6094_2.png) [@mdfrenchman](https://community.neo4j.com/u/mdfrenchman)\
**Post date:** [July 17, 2020, 5:56pm UTC](https://community.neo4j.com/t/graphql-schema-query-problem/21404/2 "2020-07-17T17:56:20Z")

</div>

I haven't touched GraphQL yet, but....  
Is it possibly that the direction for the relation is `IN` both as person and as company?

> [@kasperknudz](#):
>
> ```auto
> company: Company @relation(name:"position", direction:IN)
> }
> 
> ```
