Skip to content

Using id as an alias for _id #173

Open
@corydeppen

Description

@corydeppen

Prior to using graphql-compose, my schema included types with an id field courtesy of the Mongoose models. However, the types now have _id fields instead and I'm faced with having to tweak my entire application to use the new field name.

I was wondering if it's possible to configure graphql-compose to possibly alias the _id field so the types would have an id field instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions