zorn
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?
I'm going to close this with the workaround for future searches that, yes you can do this, but currently, it would be by hand in Absinthe.
20 replies
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?

20 replies
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?
But the curious thing is, the GraphQL library I'm using is not outright a Relay thing, but it demands "conform to the Global Identification Spec" and then links to that
graphql.org
page. -- Being a noob I'm not sure where to look for what atm.20 replies
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?
I think the relay standard is to base64 encode the type and the id like
car:123
into that string.20 replies
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?
20 replies
AEAsh Elixir
•Created by zorn on 8/25/2023 in #support
Do I have to manually make a `node` query in Absinthe to honor Global Object Identification?
I think so. It uses a spread thing (not sure the right name) to id the type.
https://relay.dev/docs/guides/graphql-server-specification/#object-identification
20 replies
AEAsh Elixir
•Created by zorn on 8/17/2023 in #showcase
[VIDEO] Early thoughts on using Ash Framework to produce a GraphQL API.
The short reason is that the site I have in mind will have a fair amount of frontend interactivity (drag and drop, client-side file uploads, interactive graphs), and while yes I could use LiveView to inject the JavaScripts I feel like I'm better off just living in the environment. Additionally, I feel like there are not enough frontend LiveView UI libraries to help me, whereas, for Svelte and JS in general, there are lots (though to varying quality).
I'll have more to share when I record my Svelte video, and I want to be clear this is all an experiment, so I reserve my right to change my mind mid-way through. 🙂
There are also some people using Svelte in LiveView (see ElixirConf video archives) so I guess even that could be an option down the road.
7 replies
AEAsh Elixir
•Created by zorn on 8/17/2023 in #support
Is the structure from the auto-generated graph filters from some spec?
Thanks for the background.
isNil
is low impact point of feedback for me so I wouldn't spend a ton of energy on it unless it comes up again.
The other part of it that felt a bit off was to see a bunch of generated greaterThan
for say my enum
attribute.
Time will tell if I use the generated filters/sort or handcraft my own. I think having some default generated option is great though.8 replies
AEAsh Elixir
•Created by zorn on 8/17/2023 in #support
Is the structure from the auto-generated graph filters from some spec?
Related, after posting, I saw the
relay?
option to the list DSL which helps explain some intent to me. https://ash-hq.org/docs/dsl/ash-resource#graphql-queries-list-relay-8 replies
AEAsh Elixir
•Created by zorn on 8/17/2023 in #support
Is the structure from the auto-generated graph filters from some spec?
Additionally, one question I have is about the choice to generate an
isNil
. I would have expected that name to be isNull
to better match the JSON value representation.8 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
To close this thread, @Zach Daniel saw the error source of the confusion which was an incorrect Inspect prootocol in the main ash project. The ticket was updated and has the needed links.
In my own project I have the behavior I am looking for with:
28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
I guess what I'm missing is that there is no way to define
representative_id
as an optional argument in the read action.28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
My current observation is that both:
and
Both debug like:
I would have expected that when the argument was not present in the graph query it would not be present in the
Ash.Query
and would debug more like:
28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
I tried just using a simple
and I'm seeing
representative_id
show up as a nil
argument evenwhen the graphql query does not include it.
28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
Is it a fair assumption that the expressions in
exp
have the be guard-like?28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
nevermind I think I see.. it's a DSL on
read
. https://ash-hq.org/docs/dsl/ash-resource#actions-read-prepare28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
prepare
goes in exp
or filter
?28 replies
AEAsh Elixir
•Created by zorn on 8/15/2023 in #support
Trying to better understand filter in the context of AshGraph
To try to add clarity: How would I go about building a filter so that, if the incoming graph query was explicitly asking for
{"representativeId": null}
I would be able to return a list of tickets where that was true.
I feel like I am missing the concept of "did they include representativeId
in the graph query at all, and then if they did what was its value, .. null
being a valid value.28 replies