damyanp.bsky.social
@damyanp.bsky.social
6/6 rust's graphql tooling is probably good enough for projects where you're defining your own schema and can adjust it to fit well with the tooling.

My experiences with js/ts packages weren't necessarily all that much better. I probably need to adjust my expectations.
April 13, 2025 at 5:16 PM
5/6 juniper & juniper-from-schema seem pretty much inactive projects.

juniper-from-schema panics when it tries to parse github's schema. I gave up at this point.
April 13, 2025 at 5:16 PM
4/6 graphql-client needs to generate unique named types throughout the query. This seems reasonable, but type names like ProjectItemsOrganizationProjectV2ItemsNodesContentOnIssueTrackedIssuesNodes are pretty unwieldy.

Maybe I'm holding it wrong?
April 13, 2025 at 5:16 PM
3/6 graphql-client & spreading:

github accepts this sort of this:

content { ... on Node { id } ... on UniformResourceLocatable { resourcePath } }

graphql-client only accepts the top-level options, so you need something like:

content { ... on DraftIssue { id } ... on Issue { id resourcePath } }
April 13, 2025 at 5:16 PM
2/6 graphql-client can mostly cope with github's schema and queries I wrote before. However, it needs more explicit __typename's, and is has a stricter view on spreading.
April 13, 2025 at 5:16 PM
"that's not the gearstick"
"I know"
March 12, 2025 at 11:54 PM
I almost feel bad for some of them. I think cyber truck preorders started before Elon went off the deep end.
January 30, 2025 at 11:10 PM