Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Recursive nodes #2525

Closed
ouertani opened this issue Jul 25, 2024 · 0 comments · Fixed by #2528
Closed

Bug: Recursive nodes #2525

ouertani opened this issue Jul 25, 2024 · 0 comments · Fixed by #2528

Comments

@ouertani
Copy link
Contributor

Prerequisites

Describe the bug

Stack overflow

Steps to reproduce

use this schema as input

scalar DateTime

schema
  @server(
    port: 8000
    hostname: "0.0.0.0"
  )
  @upstream( baseURL: "http://localhost:8083/graphql")  
  {
  query: Query
}

type Query {
	queryNodeA: [NodeA]  @graphQL (name:"queryNodeA" batch: false)
	
}

type NodeA {
	name : String
	nodeB : NodeB
}

type NodeB {
	name : String
	nodeA : NodeA
}

Expected behavior

server should parse and start

Actual behavior

stackoverflow exception

Screenshots

If applicable, add screenshots to help explain your problem.

Environment information:

  • Operating System: (e.g., Ubuntu 20.04, macOS Big Sur, Windows 10)
  • Tailcall Version: (e.g., v1.0.2)
  • Rust Version: (e.g., rustc 1.58.0)
  • GraphQL Client/version (e.g., curl/8.1.2)

Additional context

Add any other context about the problem here, such as relevant logs, error messages, or stack traces.

Logs

Paste any relevant logs here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant