-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema types to implement Hash
#792
Comments
These impls can’t be derived because In what kind of situation do you want to use a full definition with all of its details as a map key? As opposed to using only the name as a key, in the implicit context of a specific schema. |
I can imagine a situation where you would want to attach extra data to schema elements. As this isn't possible right now my first instinct was to use the objects as a key in a map. |
Yes, type definitions have unique names within a high-level I’m not sure about implementing |
Let's close this then. |
It looks like the schema types such as
ObjectType
,InterfaceType
etc do not currently implementHash
.It would be super useful if they did so as it is likely that users will want to create lookups from graphql schema types to other datastructures.
ScalarType
alone does implementHash
.The text was updated successfully, but these errors were encountered: