graphql-platform
graphql-platform copied to clipboard
IComparer<T> and CompareTo
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When you have a type that implement IComparable or IComparable<T>, you need to create a method CompareTo.
This method is by default use as field resolver, and worst break schema build ^^.
Maybe we should ignore this Method by default ?
Steps to reproduce
- Create type Book
- Implement IComparable<Book> using some value
- Run
Relevant log output
No response
Additional Context?
No response
Product
Hot Chocolate
Version
12.7.0