Closed fgroen closed 1 year ago
See GraphTypeInfo.IsOutputType
and GraphTypeInfo.IsInputType
. First, they should be set properly. Second - GraphTypeAdapter.DeriveField
should not set Resolver/StreamResolver
for fieldInfo
if fieldInfo.Type.IsInputType
is true
.
@sungam3r I am not happy that we have made breaking changes within v7. At minimum, we should have an opt-out for these types of breaking changes, or some way that the end-user can workaround any issue. We should not require a third-party library, such as the conventions project, to make changes during v7's lifetime, unless we are fixing a bug that demonstrably causes a problem. In this case, setting the resolver did no harm during execution.
Is there a workaround that can be provided to prevent the issue from occurring without a change in the conventions project? Is there a way to write a schema validation rule that executes after initialization of SchemaTypes and prior to the built-in schema initialization checks? Can the built-in schema initialization checks be bypassed? These answers should be provided within the migration notes or in a similarly-accessible location.
At the moment, the easiest way to bypass is likely (untested):
class MySchema : Schema
{
//...
protected override void Validate()
{
CoerceInputTypeDefaultValues();
// note: skipping schema validation checks for conventions version _._._
}
}
Ah, this auto-closed :) Merged @sungam3r's #259 – @fgroen, can you give that change a shot?
Thanks @tlil / @sungam3r for this (very fast) fix! It looks good on our end. I will do some further testing with the rest, but this looks good to me!
These answers should be provided within the migration notes or in a similarly-accessible location.
I agree, in general. For now I posted #259 to fix this and move on.
@tlil / @sungam3r Who is in charge of updating the latest release for conventions?
I can issue a release.
When cloning this repository and upgrading the
GraphQL.DataLoader
to 7.4.0/7.4.1 errors pop up when running the unit tests. I can track them to this change in GraphQL.NET: https://github.com/graphql-dotnet/graphql-dotnet/pull/3574I could use a bit of assistance to get this up and running again. Do you have some suggestions on how to solve this maybe?