-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add graphql_type for ash_graphql #12
Conversation
Hi @skanderm, thanks for your contribution! Not using GraphQL and AshGraphql at the moment, I don't know how to evaluate the impact of this PR or whether it is correct to add that method directly into the extension. Maybe @zachdaniel can give us an hint on this? |
The isn't how I'd suggest doing this. Instead, you can override types at the resource level. |
Probably? I'd have to think about it 🤔 I'd suggest for now holding off on this front, even if we did do it it would be |
Happy to close this in favor of another solution @zachdaniel when it comes to overriding types at the resource level, are you talking about
|
🤔 yeah that is what I was referring to, perhaps there is an issue there in that case. |
Oh and whether it's a
I'm not quite sure whether different clients handle that differently for caching purposes though. (edit: pretty sure react-query just caches by request key + params, so it may not matter for others). |
Yeah, I think it makes sense for |
Adds a missing
graphql_type/1
function definition for https://hexdocs.pm/ash_graphql/AshGraphql.Type.html#c:graphql_type/1, as ash_graphql errors out here for AshUUID.UUID attributes: https://github.com/ash-project/ash_graphql/blob/main/lib/resource/resource.ex#L4302Please feel free to close this if you'd prefer another solution!