Comments (5)
No, we can probably put HeroForEpisodeDroidInlineFragment onDroid
fields on selection sets and let them handle themselves. I must have been doing this before 1.0
from graphql-to-dart.
Ok, I believe I've solved this on 1.2.0-beta
. Also added some config options:
/**
* Field to base union / inline fragment resolution on. Field will be `@protected`
* @default '__typename'
*
* Can be set to `false` to disable automatic addition of meta fields
*/
typenameField?: false | string;
/**
* { prefix, suffix } to wrap inline fragment type names with
*
* @example '{ prefix: "on", suffix: "" } => SomeTypeInlineFragment onSomeType'
* @default '{ prefix: "", suffix: "InlineFragment" }'
*/
inlineFragmentFieldNames?: { prefix?: string; suffix?: string };
from graphql-to-dart.
@ryankauk let me know if you encounter any more issues
from graphql-to-dart.
@micimize alright thanks!
from graphql-to-dart.
@micimize fragments don't seem to work in my environment. Fragment doesn't exist when used by document outside of my _fragment.gql even though i split the globs. my best guess is that @graphql-codegen/cli probably changed the way they load documents globs, however you can easily just for loop over all the fragments before the handlebars gets ran.
I can refactor but can you explain what scenario the 'hackFragmentFields "ensure_unique"' prevents so I refactor properly?
from graphql-to-dart.
Related Issues (20)
- generating example file from schema
- because of helpers like .empty(), having invalid types is easy. We should validate not null somehow HOT 3
- Non nullable fields in graphql vs required fields in models HOT 5
- Cannot install HOT 1
- leverage equatable or other value-based equivalence
- Problem with aliases (on master) HOT 3
- Union Type Does Not Convert HOT 6
- Document using fragment causing issues when expanding fields that already exist in fragment HOT 2
- Discussion: Bake gql inside of a more global operation class HOT 1
- fragment merging HOT 1
- eventually switch to built value
- merge should map only to base types, base type methods should be respected HOT 3
- toJson() should not include items which were not set HOT 1
- Feature Request: fromJson() constructor HOT 1
- Code Generation Error "undefined_class" HOT 1
- Error compiling generated Dart File HOT 4
- Optional can not start with underscore. HOT 1
- Override schema types of specific fields with custom scalars HOT 3
- Include documents in output HOT 2
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-to-dart.