Comments (6)
I also received this error when using the /api/v1/graphql
url with graphql-codegen
but the intro.json
file that's output by the enable_introspection: true
config option worked for me.
https://graphjin.com/posts/cheatsheet#introspection-query
from graphjin.
I don't know much about graphql-codegen but this is wierd the intro.json is the same as whats sent via /api/v1/graphql so if one worked so should the other.
Error: Schema must contain uniquely named types but contains multiple types named "rolesEnum".
```
from graphjin.
@dosco Yeah I have this error too, however if I point it to the generated intro.json it seems to work correctly. I think we need to figure out if the data thats being sent out is 100% the same. I'll look at this in a bit once I'm done building out the current MVP.
from graphjin.
bBest option is to save the two and do a diff on it. would love some help with this. The function used by both is gj.getIntroResult()
it also caches the query so it should be the same. however just to be sure I'm moving the initial generation call lower in the init stack to be sure it's working with a fully initialized state.
from graphjin.
@dosco I'll check on this and give you an update. I'm just trying to get my prototype working this week.
from graphjin.
@dosco looking at how the responses are coming out, it seems like the only difference between the responses are: having the extra "data" wrappering the graph query response. But when I run the same wrappered json via the file schema option, it works. This is an issue with the codegen tool and not graphjin.
from graphjin.
Related Issues (20)
- Support `returns table (like <tablename>)` in stored procedure record returns. HOT 1
- Columns prefixed with "upper_" or "lower_" incorrectly parsed
- Support aggregation result as order field
- list query & id query having same args HOT 1
- count query field is not accepting correct arguments HOT 1
- webui: Error fetching schema HOT 1
- Perhaps there is a bug in the SetContextValues function within auth0.go. HOT 1
- Sorry, there was a problem running the beginner example and I don't know how to solve it HOT 4
- I have doubts about how to insert it password HOT 1
- I have a problem required variable 'user_id' of type 'integer' must be set HOT 4
- Does it not support mysql? HOT 1
- variable limit not work? HOT 1
- Introspection result missing inputFields HOT 1
- wasm / deno updates HOT 8
- How to use pgx.Pool
- Unable to connect postgres
- Dynamic configuration for big number of schemas
- wrong relation resolving in multiple schemas environment HOT 2
- Incorrect SDL types generated for insert/update HOT 7
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 graphjin.