RelationsInput is not known
Closed this issue · 5 comments
Describe the bug
From this link of the documentation, when working with unpaged relations, it expects an input of type RelationsInput.
That was working fine, but after upgrading from the deprecated package to this, RelationsInput is not understood by the package.
I get this error: "Unknown type "RelationsInput". Did you mean "LocationInput"?"
Have you read the Contributing Guidelines?
I just did.
To Reproduce
Steps to reproduce the behavior:
- Create a class with its children and wait for the schema to be generated.
- In the generated schema, RelationsInput won't be there, there will be a class called AddChildrenToParent | SetChildrenToParent
Expected behavior
A RelationsInput should be created as per the docs on this link.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Node Version [e.g. 16.20.1]
- Nestjs-query Version [e.g. ^3.0.2]
Additional context
Add any other context about the problem here.
Please see v2.x.x-to-v3.x.x
input AddProductsToCampaignInput {
"""The id of the record."""
id: ID!
"""The ids of the relations."""
relationIds: [ID!]!
}
The above is what is generated. The docs say RelationsInput should be generated.
I don't see the issue? AddProductsToCampaignInput
=== RelationsInput
but with a different name? All of these get there own version (this is also not changed between this fork and the original)
I understand you.
But I ended up custom editing the names to fit the scenario.
I don't think it's good though.