Does anyone here use Pathom to interface with GraphQL backends? I'm using Pathom2 to try and query Github's GQL API and I've been on the struggle bus for the past couple of days. I figured I'd ask.
Here is the graphql query I'd like to translate.
{
repository(owner: "fulcrologic", name: "fulcro") {
object(expression: "main:") {
... on Tree {
id
entries {
oid
path
type
name
}
}
}
}
}Here is the ident-map as well:
::pcg/ident-map
{"repository" {"owner" :github.repository/owner
"name" :github.repository/name}
"object" {"expression" :github.object/expression}}
I'm able to return data from 'repository' and 'object', but I'm confused on how to translate the '... on Tree' line into an EQL query that Pathom understands.