Hacker News new | ask | show | jobs
by ledauphin 1866 days ago
we use GraphQL for this purpose as well, but I'd also like to be able to validate across other boundaries.

However, as I'm saying this, I wonder if I've been looking at this problem wrong. Since we already generate types from GraphQL schemas, maybe I should figure out how to use the same client side parser that's already in my GraphQL client, define a GraphQL schema for the types I'm interested in, and then just generate and use those types.

One thing that doesn't necessarily give me is the ability to define custom parsers corresponding to custom types. At least, I think most of that sort of thing is usually done server side with GraphQL.

So, thank you for the link and also the inspiration for considering an alternative.