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

addRelation function do not support nested paths

Open
#444 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
706
Forks
98
PR merge metrics
No merged PRs in 30d

Description

I am experiencing a limitation with the addRelation function when working with nested fields in my schema. Specifically, addRelation does not seem to support fields that are deeply nested using dot notation, such as remote.budgets.notifyTo.

The only way I have found to work around this limitation is to replace the dots with underscores, resulting in a field like remote_budgets_notifyTo{_id firstName}. However, this workaround is not ideal as it deviates from the more intuitive and standard nested structure.

I would prefer to use the following nested structure:

`remote {
budgets {
notifyTo {
_id
firstName
}
}
}`

Is there any plan to support this feature in future releases? It would greatly improve the flexibility and readability of the schemas.

Thank you!

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.