Comments (6)
Is there any examples on how to do this? I'm struggling to do this myself currently but all I could find was this issue
Edit: Ok, I managed to find a test which uses this here:
Lines 542 to 561 in 35f78a4
from graphql.
Error in making graphql schema Schema must contain unique named types but contains multiple types named "SomeObject".
from graphql.
Not a complete answer, but, if I understand correctly, Thunks are meant for that. Please check #100
from graphql.
Ok. I tried it and it doesn't overflow anymore but now, when I fetch the doc in graphiql, I get:
{
"data": null,
"errors": [
{
"message": "Unknown type \"__Type\".",
"locations": [
{
"line": 22,
"column": 24
}
]
},
{
"message": "Unknown type \"__InputValue\".",
"locations": [
{
"line": 55,
"column": 26
}
]
},
{
"message": "Unknown type \"__Type\".",
"locations": [
{
"line": 62,
"column": 23
}
]
}
]
}
These are probably stupid questions but i'm trying to understand the different possibilities and the graphql package organisation and it's quite hard ;)
from graphql.
Ok it works.
The issue came from the fact that I didn't use the same type objects in every field declaration.
I guess the reflection crashed at some point because of that.
from graphql.
great it worked. ya, I use custom resolve method by just typecasting the fields, instead of using the default reflection based handlers.
from graphql.
Related Issues (20)
- Potential goroutine leak in TestContextDeadline HOT 1
- Enums with trailing white space cause error.
- Playground
- make union input type ? it just have output union type
- With fiber HOT 1
- Printing GraphQL documents is slow HOT 1
- Bug with underscore and same name in keys from json response
- MongoDB _id field
- Printer returns invalid SDL if Block String comment contains double-quote
- When using custom scalar types, it's crucial to provide error feedback to users when issues arise with their submitted data. However, triggering exceptions within the ParseValue and ParseLiteral methods can lead to program crashes when using the graphql.Do method. This prevents the necessary error messages from being delivered to users.
- String type no longer recongised HOT 1
- Is it possible to go from `*graphql.Schema` to an ast node? HOT 1
- Error handling HOT 1
- Disabling Field Suggestions
- Is possible to typing typeConfig of graphql.Object after Object done.
- RootObjectFn request body always empty
- Unable to pass {{....}} as part of query or mutation string
- Redefining scalar ID
- How to support scalar JSON type? HOT 1
- Accessing parent from nested child resolver 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 graphql.