Re:How and why GraphQL will influence the Sourcehut alpha
by searchableguy on Thursday June 11, 2020 @02:10AM
(#23485669)
You don't need spa to take benefits of the generated types from graphql. If you use something like typescript on the backend (SSR app), the types will be stripped out in the end so it doesn't affect your bundle size.
Re:How and why GraphQL will influence the Sourcehut alpha
by CameronNemo on Thursday June 11, 2020 @02:12AM
(#23485680)
You must understand my confusion when your original comment explicitly states that frontend types can be generated, but your reply here seems to be talking about a javascript/typescript backend service.
Re:How and why GraphQL will influence the Sourcehut alpha
by searchableguy on Thursday June 11, 2020 @02:16AM
(#23485706)
Sorry by backend, I mean your SSR app.
Re:How and why GraphQL will influence the Sourcehut alpha
by vertex-four on Thursday June 11, 2020 @07:12AM
(#23487539)
What bundle size? There's no javascript being shipped to the client.
Re:How and why GraphQL will influence the Sourcehut alpha
by gbear605 on Thursday June 11, 2020 @07:42AM
(#23487759)
Technically there is some used for a few things, like a text editor (for writing build manifests) and for payments. But those are very limited and aren’t relevant to the use of GraphQL.
By GP (grandparent?) do you mean the article / blog post?
Because if so I see no indication that Drew plans to adopt a SPA architecture -- he seems intent on continuing to use server side rendering with little javascript, which would make "frontend types" sort of irrelevant.