drumusician
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
ok, problem seems to be between chair and keyboard... I'm just not adding it there... 🤦♂️
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
Ok, I think it is because of a calculation I'm doing
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
I'll dig up some examples
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
If I query a resource directly it works, but it seems that in the relation it gets lost
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
It is a pretty complex one where I needed to inject extra args in a related query
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
ok, interesting. It is the way I am building up the query I think
15 replies
AEAsh Elixir
•Created by drumusician on 9/22/2023 in #support
Cannot return null for non-nullable field
code interface query returns an empty map. I am not using any field_policies
15 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
ah ok clear
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
ah ok, what does the
relationship_context
do then?146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
ok, the direct request for a Game with the above setup works really nice. The thing I am running into now is that if I load a game through:
playlist
-> playlist_entry
-> game
The module doesn't seem to get the organisation_id context which I'm setting now in a playlist... Is that context something that should be explicitly passed on through the relationship configuration?146 replies
AEAsh Elixir
•Created by drumusician on 9/13/2023 in #support
sort many_to_many
ok, cool. How does one expose a relationship?
9 replies
AEAsh Elixir
•Created by drumusician on 9/13/2023 in #support
sort many_to_many
I guess that should suffice, but where should I put it? in the many_to_many?
9 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
nice!
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
And a bit related to that question, can calculations be nested? ie. If have a calculation the calculates a certain (typed) object, can that object contain calculations of it's own?
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
Ok, implementing the above now. This is actually very nice! One question, can a calculation depend on values from another calculation?
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
Alright, signing off here in Europe. Thanks again for your help!! Once we get more people involved in Ash at my company (which is going to happen), I hope I can get you in for some training. Would be really helpful I think.
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
the map in the 3rd argument in the load function, is that the context?
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
ahh, that is actually very nice!! I think this make a lot of sense to model it this way.
146 replies
AEAsh Elixir
•Created by drumusician on 9/11/2023 in #support
ManualRead not resolving in graphQL
yes to load organisation specific overrides, but in the end it should probably also return a 404 if there is no entry for an organisation_id, but that is not an issue yet
146 replies