Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-10-2020 01:54 AM
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:
query { Company
{
name
person {
firstName
And the schema looks like this:
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:
{
"data": {
"Company": [
{
"name": "ABBA THE MUSEUM",
"person": []
},
{
"name": "ZAPLIFY",
"person": []
},
{
"name": "EVERYTIME FITNESS",
"person": []
}
07-17-2020 10:56 AM
I haven't touched GraphQL yet, but....
Is it possibly that the direction for the relation is IN
both as person and as company?
All the sessions of the conference are now available online