SchemaException when type has Equals method
See original GitHub issueI implemented method Equals
in my class:
public class Test
{
public override Equals(object obj) => true;
}
Then I created ObjectType:
public class TestType
: ObjectType<Test>
{
public override void Configure(IObjectTypeDescriptor<Test> desc)
{
desc.Field(x => x.Equals(default)).Ignore();
}
}
When I run the project I get the following error:
HotChocolate.SchemaException : The type `System.Object` of field `Test.obj` could not be resolved to a valid schema type. - Type: Test at HotChocolate.Schema.CreateSchema(SchemaContext context, Action`1 configure) at Renta.Tests.Mock.SchemaMock.CreateSchema(IServiceProvider provider) in
This is a bug?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
SchemaException when type has Equals method #229
I implemented method Equals in my class: public class Test { public override Equals(object obj) => true; } Then I created ObjectType: public ......
Read more >Overriding the java equals() method - not working?
In Java, the equals() method that is inherited from Object is: public boolean equals(Object other);. In other words, the parameter must be ...
Read more >java - Is it a good idea to have logic in the equals method ...
An equality operator will claim that two objects are equal if and only if they should be considered equal, due to whatever considerations...
Read more >SchemaException (midPoint API Distribution 4.0 API)
Returns a human-readable message that describes the type or class of errors that the exception represents. QName · getPropertyName(). Methods inherited from ...
Read more >FeatureTypes (Geotools modules 29-SNAPSHOT API)
This method depends on the correct implementation of FeatureType equals ... Whether the feature type has the specified name, or is a descendent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is a bug … I will fix it and make a release. I think you will have the fix by tomorrow.
@michaelstaib thanks, for fast fix!