seniorGraphQL

Discuss Performance Implications of Abstract Types (Unions/Interfaces).

Updated Apr 28, 2026

Short answer

Resolving abstract types requires the server to determine the concrete type at runtime, adding computational overhead.

Deep explanation

When a resolver returns an Interface, GraphQL executes an internal __resolveType function to check the object's shape and assign the correct type so it knows which fields to validate. In highly polymorphic lists (e.g., returning 10,000 feed items of mixed types), this reflection-like checking can bottleneck the CPU.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More GraphQL interview questions

View all →