Comments (3)
This would be especially useful for named fragments, where you might do
f { ...MyFragment }
and it would be great if we could just generate a field F MyFragment
instead of (effectively) F struct { MyFragment }
.
(Edit: this part, but not the original idea, is implemented as flatten
in #121.)
from genqlient.
This has come up quite a lot with fragments. I'm going to try to work on it if I get time.
from genqlient.
#121 implements this, but only for fragment spreads, as they've proven to be both the more useful case and by far the easier one to implement. See the PR for details.
from genqlient.
Related Issues (20)
- Errors with Strawberry Generated Schema including `JSON` Scalar HOT 1
- Tests failing on Go 1.22+
- Lint failing on 1.21+
- Using `# @genqlient(typename: "Webhook")` adds `json:"-"` to generated struct (?) HOT 7
- Support `optional: generic` inline
- Support, new release HOT 1
- How can I get response header HOT 1
- Allow globs for schema/queries to be optional, if at least one file is found HOT 1
- Inconsistent JSON Tag Generation for Required Boolean Fields in Structs HOT 3
- Optional input with required output HOT 1
- Support for @authenticated directive HOT 2
- Standardise the error return from http request HOT 3
- Add option to not generate the client, only the types HOT 2
- Option to generate multiple files HOT 2
- Using an Interface inline fragment inside of a Union is awkward to unpack HOT 3
- Optional parameter made required HOT 2
- schema.md has some formatting issues
- Running genqlient on large schemas fails HOT 4
- use_struct_references not compatible with new omitempty validation logic HOT 9
- The Generated GraphQl query with mutation throws error for LINEAR GraphQL Query endpoint HOT 1
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 genqlient.