Comments (5)
@dotansimha So what about the typesPrefix
? Do you have some answer to that, please? The issue got closed accidentally with the PR.
from graphql-code-generator-community.
same issue with the plugin typescript-msw
, it doesnt respect/acknolwedge omitOperationSuffix
, even though the class its extending from class MSWVisitor extends visitorPluginCommon.ClientSideBaseVisitor
has it listed as a config option. Was able to add it back manually but thats going to be a pain to manage a "custom" plugin that is fixed
from graphql-code-generator-community.
So I decided to have a stab at this since it's starting to annoy me.
First thing, I noticed there is an explicit test to ignore typesPrefix
. Why is that? Is that some opinion that it "looks ugly"? That certainly shouldn't be like that. If configured, it should be respected no matter what.
Same for components...
So what is the stance here? Changing this here is technically a breaking change if someone uses typesPrefix
for something else.
from graphql-code-generator-community.
Thanks, @FredyC , let's keep this open until we'll have a complete solution.
from graphql-code-generator-community.
@dotansimha Solution is simple, but I need someone to decide what is the "correct behavior". Apparently, it was intended to ignore typesPrefix
for some reason.
from graphql-code-generator-community.
Related Issues (20)
- typescript-react-query Generated queries should reference a type that has common query keys/method (getKey, fetcher, callable)
- [typescript react-query] vue-query not compatible since 6.0.0 and tanstack v5 HOT 1
- Typescript React Query v5 wrong type infinite query HOT 2
- Incorrect description generation for mutation arguments
- Add NestJS plugin
- Generated defaultWrapper includes an unused parameter not prefixed with `_`
- msw plugin does not allow to pass `RequestHandlerOptions` on generated mocks HOT 2
- [react-apollo]: `documentMode: external` does not apply naming parameters
- typescript-react-query: expose `useQuery` `queryClient` parameter with v5 HOT 1
- typescript-urql-graphcache: Property '__typename' is missing in type 'DataFields' HOT 2
- Generated useInfiniteQuery hook code has typescript error with spread operator being applied on `metadata.pageParams` (`unknown` type) HOT 2
- Feature Request: expose queryOptions of react-query v5
- Feature request: [java & kotlin] Generate types as interfaces
- Dotnet code gen does not work on the website HOT 1
- defaultBaseOptions value is not exported in generated file
- Allow toggling useSuspenseQuery generation HOT 2
- [java] generated enum arguments lack validation HOT 2
- [react-apollo] Add support for `useLoadableQuery`
- skipToken support for typescript-react-apollo HOT 3
- [Java] Reserved keyword "case" used in generated code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-code-generator-community.