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

About Mutation #284

Open
hzw2015 opened this issue Sep 22, 2020 · 4 comments
Open

About Mutation #284

hzw2015 opened this issue Sep 22, 2020 · 4 comments

Comments

@hzw2015
Copy link

hzw2015 commented Sep 22, 2020

Will Mutation be supported in the future?

@negesti
Copy link
Contributor

negesti commented Sep 22, 2020

@igdianov for our project we have extended the GraphQLJpaSchemaBuilder and are merging the existing GraphQL schema with our own mutation schema. However the mutation are not auto generated but require a DAO for each entity that should be updated/created/remove. If you are interested i can try to provide a sample/PR

@hzw2015
Copy link
Author

hzw2015 commented Sep 22, 2020

Thank you very much, can you provide sample code for reference

@negesti
Copy link
Contributor

negesti commented Sep 22, 2020

You can find a quick copy&paste here https://gist.github.com/negesti/7a74b063a0d17d87bdebbb559da9c9c8

The actual mutation is done by a "hand written" DAO that implements the interface MyDAOInterface. For each entity that should be mutable, you must implement the "MyDAOInteface" and provide a MyAbstractMutation for it

@hzw2015
Copy link
Author

hzw2015 commented Sep 22, 2020

Thanks, will the above code implementation be considered for adding to the current project?

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

No branches or pull requests

2 participants