Closed sheluchin closed 2 years ago
Hello @sheluchin, sorry the delay, just got to read this.
I tried your first example and as you said it works here, but for the second I'm getting a different result. I had to do myself the mapping for organization for example, and without having your full sources its hard to tell if I'm running the same thing as you. So can you please provide the full sources so I can reproduce the same thing that you are running?
Thanks.
Never mind, I was able to reproduce, now have to investigate, I don't know why this is happening yet.
Hi @wilkerlucio. Thanks for looking into it. Please let me know if you need anything else from my end.
Maybe related issues, check together:
[{(:github.Query/search {:query "sheluchin" :type USER :first 1})
[:github.SearchResultItemConnection/userCount
{:github.SearchResultItemConnection/edges
[{:github.SearchResultItemEdge/node
[:github.User/login]}]}]}]
cause "Pathom can't find a path for the following elements in the query: [:github.User/login] at path [:github.Query/search :github.SearchResultItemConnection/edges :github.SearchResultItemEdge/node]"
@sheluchin about the Union part (the Search on Github), this just got fixed on main, wasn't related to the other issue. Now with the UNION fixed I'm moving to debug the input issue.
I should be able to try these fixes in a few days. Thanks very much, @wilkerlucio.
Can confirm both fixes worked. Thanks again!
I'm running into something a little weird with GitHub GraphQL.
This query works fine:
Returning:
But when I try this nearly identical query through a resolver, I get an error:
If I remove
{:github.Repository/owner [:github.RepositoryOwner/id]}
from the resolver input, it works. It seems like joins on other fields in the same location don't work either. For example,{:github.Repository/issues [:github.IssueConnection/totalCount]}
.Any idea what I'm doing wrong here?