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

"Delete mutations" schema on version 6 #5444

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

mjfwebb
Copy link
Contributor

@mjfwebb mjfwebb commented Aug 7, 2024

Description

This PR updates the schema in v6 with delete mutations.

Translation is not yet implemented, so this is a partial feature

This comment was marked as outdated.

@mjfwebb mjfwebb changed the base branch from dev to 6.x August 7, 2024 08:56
@neo4j-team-graphql

This comment was marked as off-topic.

@mjfwebb mjfwebb requested a review from MacondoExpress August 7, 2024 12:39
Copy link
Contributor

@MacondoExpress MacondoExpress left a comment

Choose a reason for hiding this comment

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

LGTM, shall we move "MovieDeleteResponse" to "DeleteResponse" and generate it once?

Comment on lines 101 to 103
public get deleteInfo(): string {
return `${upperFirst(this.entityName)}DeleteInfo`;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public get deleteInfo(): string {
return `${upperFirst(this.entityName)}DeleteInfo`;
}

@@ -312,6 +330,16 @@ export class TopLevelEntitySchemaTypes {
};
});
}

public get deleteType(): ObjectTypeComposer {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add a static "DeleteResponse" rather than "MovieDeleteResponse"

@mjfwebb mjfwebb merged commit 0aebf06 into neo4j:6.x Aug 8, 2024
76 checks passed
@mjfwebb mjfwebb deleted the delete-mutation-schema branch August 8, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pull requests
Development

Successfully merging this pull request may close these issues.

3 participants