Skip to content

Fragment type conditions don't work for union types #112

Closed
@wravery

Description

@wravery

Take the following example from the schema.today.graphql sample:

{
	appointments {
		edges {
			node {
				...AppointmentUnionFragment
			}
		}
	}
}

fragment AppointmentUnionFragment on UnionType {
	...on Appointment {
		appointmentId: id
		subject
		when
		isNow
	}
}

The AppointmentUnionFragment fragment never matches on the Appointment type.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions