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

Fixes building the GraphQL schema. #16184

Merged
merged 5 commits into from
May 31, 2024
Merged

Conversation

gvkries
Copy link
Contributor

@gvkries gvkries commented May 28, 2024

Fixes building the GraphQL schema that fails because the types must be registered as transient and are resolved multiple times.

Also this makes the schema building a little bit more efficient by mostly reusing already registered types.

Fixes #16182

/cc @MikeAlhayek @tropcicstefan

@Piedone
Copy link
Member

Piedone commented May 30, 2024

@hyzx86 could you please check this out too?

@hyzx86
Copy link
Contributor

hyzx86 commented May 30, 2024

Hi @mdameer , It looks like this PR will have some relevance to your PR #16092 , can you take a look?

@gvkries
Copy link
Contributor Author

gvkries commented May 30, 2024

#16092 would have to change a little bit, but it doesn't look like too conflicting. I would suggest to merge this PR first, because it fixes a bug and #16092 is about new features 🤷‍♂️

Copy link
Contributor

@hyzx86 hyzx86 left a comment

Choose a reason for hiding this comment

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

LGTM

@hishamco
Copy link
Member

@gvkries anything else to add here or shall I merge?

@gvkries
Copy link
Contributor Author

gvkries commented May 31, 2024

This PR is complete IMHO.

/cc @MikeAlhayek @hishamco

@hishamco
Copy link
Member

I will update to master then merge

@hishamco hishamco merged commit 8ef3a02 into OrchardCMS:main May 31, 2024
5 checks passed
@gvkries gvkries deleted the gvkries/gql-16182 branch May 31, 2024 14:24
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.

GraphQL schema building fails and is inefficient
5 participants