Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce TypeReference #1151

Closed
wants to merge 3 commits into from
Closed

Introduce TypeReference #1151

wants to merge 3 commits into from

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented May 24, 2022

See #1149

ruudk added 2 commits May 24, 2022 16:39
This can be used to construct a schema without having to link every types together via
a central registry or by using callbacks.

It makes the types more independent and only on runtime they will have to all resolve to
the correct type.

namespace GraphQL\Type\Definition;

class TypeReference extends Type implements NullableType, NamedType
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why this has to extend Type, it can not be used as such.

@spawnia
Copy link
Collaborator

spawnia commented May 24, 2022

Just merged #1104 which changes Schema significantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants