Auto-indexing service and GraphQL API for AT Protocol Records quickslice.slices.network/
atproto gleam graphql

Feat: Better support for union types in records #4

open opened by lemmaeof.gay

At the moment, it's not really very feasible to create a new record containing a union type in GraphQL. This is because the mandatory $type field for type differentiation in unions collides with the GraphQL syntax for variables and so cannot be represented. This is a pretty notable issue, given that even core Bluesky types like app.bsky.feed.post use union types liberally. Is there a good workaround for this in GraphQL? It doesn't seem to like escaping field names in quotes, but I've been having some other issues getting GraphiQL to play nice so I'm not sure how illegal it is.

Yea this is a big issue! ++

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:fxgreqfae3vqhyjsntsikfux/sh.tangled.repo.issue/3mc4nosk7d422