GithubHelp home page GithubHelp logo

Comments (4)

dmongeau avatar dmongeau commented on July 29, 2024

It's not supposed to cause any problem. But maybe one thing to do first, is try to have an error message of any kind. Do you have errors display enabled on your server?

Also, I'm curious what your GraphQL query looks like.

from laravel-graphql.

dmongeau avatar dmongeau commented on July 29, 2024

Okay, I think I see the problem. When the type is created, it needs itself to be created resulting in a recursive loop. Since GraphQL needs an instance of an object type to consider it as the same type, I don't really see how you can do it besides creating Comment, ChildComment, etc...

Anyway since you cannot use wilcard on GraphQL query, I don't see how you could query an infinite level of children.

from laravel-graphql.

lo3ty avatar lo3ty commented on July 29, 2024

sadly, this makes totally sense.
thanks for pointing this out.

from laravel-graphql.

bcarroll22 avatar bcarroll22 commented on July 29, 2024

I think this needs to be resolved somehow. Being able to do this sort of thing is fundamental to GraphQL. I see that they resolved this issue in the webonyx package already. What could be done to enable this here? I'd be willing to help with the effort to get it done.

from laravel-graphql.

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.