why is it that ```query ($id: ResumeWhereUniqueInp...
# orm-help
s
why is it that
Copy code
query ($id: ResumeWhereUniqueInput!) {
  resume(where: $id) {
    coverLetter
    positions {
      id
    }
  }
}
with
Copy code
{
  "id": {
    "id": "cjwj8wq7k01980766ixv2jcy2"
  }
}
produces
Copy code
{
  "data": {
    "resume": {
      "coverLetter": "something",
      "positions": []
    }
  }
}
? the returned
positions
array is empty for some reason... this is my schema:
Copy code
type Position {
  description: String
  id: ID! @id
}

type Resume {
  coverLetter: String
  id: ID! @id
  positions: [Position!]!
}
e
What exactly are you unsure about?
What does your resolver look like?
s
i don't have one
e
Hey, Sorry. Without having a resolver to look at I’m not sure how much help I can be (as I’m unfamiliar with your prisma setup). The only thing, albeit quite obvious, is to make sure your
resume
contains
positions
s
a resolver isn't necessary, though... i have datamodel.prisma and i ran
prisma deploy
c
Does that resume actually have any positions in the database?
s
it should.. i created a few resumes and they can't be related without at least one position.. also, i can query a list of positions (separate from a resume)
shit, i dunno... i removed the database, created a new resume and now it works