Skip to content

Bug: Circular field dependency results in maximum call stack #64

@VojtaStanek

Description

@VojtaStanek

This code:

import {
	Schema,
	Query,
	ObjectType,
	Field,
	schemaFactory
} from 'graphql-schema-decorator'

@ObjectType()
class QueryType {
	@Field()
	other(): QueryType {
		return null
	}
}

@Schema()
class SchemaType {
	@Query() query: QueryType
}

schemaFactory(SchemaType)

Results in:

RangeError: Maximum call stack size exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions