graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

IComparer<T> and CompareTo

Open evilz opened this issue 3 years ago • 0 comments

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

  1. Create type Book
  2. Implement IComparable<Book> using some value
  3. Run

Relevant log output

No response

Additional Context?

No response

Product

Hot Chocolate

Version

12.7.0

evilz avatar Aug 09 '22 16:08 evilz