I'm a software engineer with a lot of React and startup experience. I write about my opinions on React, using Firebase with React, and lessons from building my 1st startup, Retro.
I like to write my GraphQL queries and mutations in-line within the component file, since my queries are almost always 1:1 with the component that is using it. You can see this here: dev.to/farazamiruddin/an-opinionat...
As far as generated code, I keep a top level folder for all generated code and title it __generated__. All the auto-generated type definitions go in there.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey great article, I wanted to ask you, how do you structure your graphql related files (client, queries, mutations, generated code)
I like to write my GraphQL queries and mutations in-line within the component file, since my queries are almost always 1:1 with the component that is using it. You can see this here: dev.to/farazamiruddin/an-opinionat...
As far as generated code, I keep a top level folder for all generated code and title it
__generated__
. All the auto-generated type definitions go in there.