Skip to content

Eagerly Load Types should only be true for introspection requests #3159

@jasonbahl

Description

@jasonbahl

What problem does this address?

When a type is defined as eagerlyLoadType => true there is a run-time performance cost for each query and this is typically only needed for Introspection queries.

What is your proposed solution?

We should consider "forcing" eagerlyLoadType to be false for non introspection queries and true for introspection.

What alternatives have you considered?

No response

Additional Context

see: wpengine/wp-graphql-content-blocks#134 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions