Skip to content

graphql-compose-mongoose with Typescript without extending Document #414

Open
@fotAlat

Description

@fotAlat

I was interested in using the library because i found it very handy in terms of translating Mongoose Schemas to GraphQLObjects. I was blown away by how good it works but i noticed something. In models that we use Typescript interfaces it complains if I do not use the Extends Documents in the interface.

Is there any reason why we should use the extends Document when the mongoose Documentation recommends against that?

https://mongoosejs.com/docs/typescript.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions