Replies: 2 comments 1 reply
-
You can use config:
mappers:
Apartment: Document |
Beta Was this translation helpful? Give feedback.
1 reply
-
I got it works but I don't know is it the correct solution?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I use Mongoose, and I want to return from the resolver created Document type but generated resolver types making it impossible for me. Does anyone know how to get around the issue or make it works? Plugins? Thank you in advance.
type Apartment {
_id: ID!
location: String!
category: String!
title: String!
description: String!
rooms: Int!
area: Float!
price: Float
priceCurrency: Float
floor: Int!
numberOfFloors: Int!
}
"@graphql-codegen/cli": "^1.19.2",
"@graphql-codegen/typescript": "^1.17.11",
"@graphql-codegen/typescript-resolvers": "^1.17.11",
"mongoose": "^5.10.9"
Beta Was this translation helpful? Give feedback.
All reactions