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

Remove deprecated fields flag #5104

Merged
merged 5 commits into from May 13, 2024
Merged

Remove deprecated fields flag #5104

merged 5 commits into from May 13, 2024

Conversation

angrykoala
Copy link
Member

Proposal

Add feature option excludeDeprecatedFields to reduce the schema size by removing autogenerated fields that have been deprecated:

Usage:

const neoSchema = new Neo4jGraphQL({
    typeDefs,
    driver,
    features: {
        excludeDeprecatedFields: true,
    },
});

This flag will remove the fields marked as @deprecated that have been autogenerated by the @neo4j/graphql library to reduce the schema size and hence server startup time and performance. Note that user-defined deprecated fields are not removed. Some autogenerated fields may still be generated, particularly those that do not affect schema size.

This has proven to solve big schema issues for some users

Copy link

changeset-bot bot commented May 9, 2024

🦋 Changeset detected

Latest commit: 607e5a9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neo4j/graphql Patch
@neo4j/graphql-ogm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@neo4j-team-graphql neo4j-team-graphql added this to Pull requests in PR Triage May 9, 2024
@angrykoala angrykoala merged commit 2ea306d into dev May 13, 2024
79 checks passed
@angrykoala angrykoala deleted the remove-deprecated-fields-flag branch May 13, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
PR Triage
Pull requests
Development

Successfully merging this pull request may close these issues.

None yet

2 participants