Robert Graff
AEAsh Elixir
•Created by aidalgol on 5/4/2025 in #support
Rendering AshPaperTrails
@allenwyma I don't know of any good public examples, but if you find one let me know.
11 replies
AEAsh Elixir
•Created by Robert Graff on 7/20/2023 in #support
How do relationships with composite keys work?
That's correct
10 replies
AEAsh Elixir
•Created by Robert Graff on 8/18/2023 in #support
Duplicate input types for GraphQL
I am working on ash_graphql main. I can not figure out how to reproduce this in the test lib, but I have it working in app now using
graphql_type()
🤷♂️11 replies
AEAsh Elixir
•Created by Robert Graff on 8/18/2023 in #support
Duplicate input types for GraphQL
I did not define a graphql_type and so it was assuming one for me. Setting my own graphql_type fixes it.
So to recap: when I use a nested union as a singular argument and array attribute in two mutations while not defining a graphql_type, absinthe throws an after compile error:
In my repo, I can replicate it reliably. And I'm unable to replicate it in the ash_graphql test suite.
11 replies
AEAsh Elixir
•Created by Robert Graff on 8/18/2023 in #support
Duplicate input types for GraphQL
Spent some time unsuccessfully trying to write a test for ash_graphql, and while doing so figured out a work around.
11 replies
AEAsh Elixir
•Created by Robert Graff on 8/18/2023 in #support
Duplicate input types for GraphQL
will do.
11 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
The union raises the struct error, but adding the form for one of the variants leads to other errors
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
I'm trying to get it working with just one type to start.
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
I can switch the behaviour for the union type pretty easily, but I'm not sure I'm adding forms correctly.
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
Got it. That makes sense now. For other reasons, I've not been able to get forms working and I haven't tested the apis
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
Are the validations supposed to be skipped if there's no casting?
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
Wow, ok. Using a map instead of a struct, the constraints and the validations are applied.
22 replies
AEAsh Elixir
•Created by Robert Graff on 8/11/2023 in #support
Applying constraints to embedded union types
22 replies
AEAsh Elixir
•Created by gordoneliel on 8/4/2023 in #support
Testing: How to approach testing
and
Seeing better patterns would be useful
10 replies
AEAsh Elixir
•Created by gordoneliel on 8/4/2023 in #support
Testing: How to approach testing
This interests me.
Right now we're doing:
10 replies
AEAsh Elixir
•Created by Robert Graff on 8/3/2023 in #support
Why don't read actions filter by attributes?
I see. It's more about being more robust than a simple key/value filter.
Thanks for helping me understand
13 replies
AEAsh Elixir
•Created by Robert Graff on 8/3/2023 in #support
Why don't read actions filter by attributes?
This is a question more about the philosophy and intent, and less asking "how to?".
Yes, we're currently using Ash.Query to filter. My question was "why?" because it seems like such a common use case. I think of using query as an escape hatch of sorts, because I really want my actions to define the intended usecases.
It's similar to how the GraphQL interface creates the input automatically from what's filterable. You don't have to define a read action with arguments for the filterable attributes.
It's similar to how the GraphQL interface creates the input automatically from what's filterable. You don't have to define a read action with arguments for the filterable attributes.
13 replies
AEAsh Elixir
•Created by Robert Graff on 7/28/2023 in #support
Key :editing_tenant not found
Would be nice to be able to configure tenant selection as a select input by setting providing tenant options in an assigns.
9 replies
AEAsh Elixir
•Created by Robert Graff on 7/28/2023 in #support
Key :editing_tenant not found
Still can't select a tenant:
9 replies
AEAsh Elixir
•Created by Robert Graff on 7/28/2023 in #support
Key :editing_tenant not found
Fixed most my issues with content-security-policy changes.
9 replies