Comments (2)
same question.
from gqlgen.
Its expected, its the way the generator deals with nested structs during codegen, I've assumed they come from the DB and loading the child objects eagerly isnt desired.
Consider:
type Customer {
id: Int!
name: String!
address: Address // one to one relationship, customer needs AddressID
orders: [Order!] // one to many relationship, should probably be left off the model and go back to the resolver to find the orders.
}
Thoughts?
from gqlgen.
Related Issues (20)
- Test client error while deserializing Time scalar HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x642ede] HOT 2
- interface conversion: interface {} is []interface {}, not map[string]interface {} HOT 3
- field resolver on input types
- introspection includeDeprecated on INPUT_FIELDs
- How to use custom resolver implementation
- High Memory Usage During Generation HOT 3
- Improve support for @requires Federation directives
- Use errors.Join instead of multierror.Append
- Error generating resolvers for federated schema with interface fields in @key
- GraphQL SSE via playground.AltairHandler does not work
- unused parameter: ctx warnings in generated.go
- Subscription error: Error: Socket closed with event 1002 RSV1 set, bad opcode 7, bad MASK at Object.error
- @defer directive cancel load
- Codegen creates extra code on INPUT_OBJECT directive when using nested input fields? HOT 1
- Support for UUID type in ID scalars HOT 2
- Enable fix float point 2 decimal place
- Support for response.body.extensions on successful response?
- unnecessary entity resolvers generated when having multiple keys even after setting resolvable: false
- Unable to pass double braced '{{....}}' text or through to resolvers
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 gqlgen.