GithubHelp home page GithubHelp logo

Comments (6)

nathanstitt avatar nathanstitt commented on June 18, 2024 1

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.

dosco avatar dosco commented on June 18, 2024

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.

rkrishnasanka avatar rkrishnasanka commented on June 18, 2024

@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.

dosco avatar dosco commented on June 18, 2024

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.

rkrishnasanka avatar rkrishnasanka commented on June 18, 2024

@dosco I'll check on this and give you an update. I'm just trying to get my prototype working this week.

from graphjin.

rkrishnasanka avatar rkrishnasanka commented on June 18, 2024

@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.

Screen Shot 2023-12-15 at 4 21 32 PM

from graphjin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.