Forgot to add `# import Apartment from "./generate...
# orm-help
c
Forgot to add
# import Apartment from "./generated/prisma.graphql"
? Also is the type in your
datamodel.graphql
as well?
k
The graphql server works perfectly and I can "hack" the codegen with this snippet:
Copy code
type Query {
  me: User
  search(id: ID!, radius: Int!): SearchPayload!
}

type SearchPayload {
  apartments: [Apartment!]!
}
But for whatever reason
graphql codegen
doesn't like if an array is returned from a root query.
c
Can you check if seach(...): [Apartment]! Works?
k
It also fails with the same error. It seems like a bug in
graphql codegen
.