GraphQL и Go — gqlgen после года в проде: опыт, советы и выводы

Привет! На связи Петр Коробейников, я лидирую разработку бэкенда в одной из ключевых финтех-команд и отвечаю за то, чтобы пользователи приложения «Мой МТС» всегда видели актуальные данные своего счета. Если коротко, у нас в проекте Go на бэке, а для общения с приложением GraphQL — выбор продиктован платформой, и мы фактически предоставляем сабграф, к которому и обращается наша часть приложения.

https://habr.com/ru/companies/ru_mts/articles/994594/

#go #gqlgen #реальный_опыт #GraphQL #gqlgen_в_проекте #работа_с_GraphQL

GraphQL и Go — gqlgen после года в проде: опыт, советы и выводы

Привет! На связи Петр Коробейников, я лидирую разработку бэкенда в одной из ключевых финтех-команд и отвечаю за то, чтобы пользователи приложения «Мой МТС» всегда видели актуальные данные своего...

Хабр

I am generating db use with #sqlc, api with #gqlgen, and page renders with #templ.

The last thing I'm actually writing is my test with #ginkgo. Which dictate how everything else is built.

Feels like my #golang workflow has gotten pretty productive. Once I stopped trying to bikeshed. 😅

I'm certain now. Writing #GraphQL server with #GoLang #gqlgen is considerably better than other libs in languages I tried. That includes #elixir, #Python, and even #typescript. 🫠

The library focuses so much on #schema first, you can off load the boilerplate to the generated code. 😎 Focus on the business logic of your api, not instrumenting. 😅

Funny enough, if I was going with #REST, I would say #fastapi in python is the equivalent in productivity. 😉

LayerX初開催!ソフトウェアエンジニアサマーインターンが楽し過ぎた!!!
https://qiita.com/shio-42/items/3f13e311487c3b88cd52?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

#qiita #Go #GraphQL #gqlgen

LayerX初開催!ソフトウェアエンジニアサマーインターンが楽し過ぎた!!! - Qiita

はじめに9月2日から9月13日まで、LayerXさんの2週間のサマーインターンに参加しました。この記事では、インターンの内容や学んだことについて紹介します。バクラクサマーインターンが本当に実りある…

Qiita

we were able to hotswap from raw #golang strings for timestamps (yikes) in #graphql to the native Time #gqlgen object [1] and everything just worked™️

our frontend was parsing timestamps correctly 🙏, and this data format just generates Go code with `time.Time`, so 1 big big hotswap PR was all it took

now the Go code is less ugly  (converting time pointers to and from string pointers YIKE??)
I can finally put this massive regretti to bed 🥹

[1] https://gqlgen.com/reference/scalars/#time

Mapping GraphQL scalar types to Go types — gqlgen

Mapping GraphQL scalar types to Go types

Got all the data graphed up and queryable via GraphQL in my project, thanks to #ent and #gqlgen. You know it's going to be good when simply playing with the data via the GraphiQL playground is already enough for it to be dangerous. 😈

Man, I love coding. The dopamine rush you get when something begins to become useful outweighs all the cortisol-inducing debugging.

#golang