Skip to content

Conflict because they return conflicting types #310

Open
@pgorin

Description

@pgorin

Hi guys!

Maybe I'm referencing about an issue already discussed.
I'm actually getting an error when executing a graphQl query which returns a UnionType with two different implements but sharing a field with the same name and different type.

I have looking for this issue and I found a topic called "safe divergence". Is this situation behind this concept?

I can't understand why two fields can conflict if they belong to two different implementations of a UnionType.

This is my example:

... on ManualCancellation {
reason --> of type A
}
... on AutomaticCancellation {
when
reason --> of type B
}

I hope you can guide me about this issue.
Thanks,
Patricio.

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