graphql-compose / graphql-compose/graphql-compose-mongoose

Using id as an alias for _id

Open
#173 9 comments 2 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.