-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
impl create/update/delete mutations #125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @floffel, looks promising!! I would like to see the mutation in action. Perhaps you can alter one of the example just like you descripted and add a mutation_tests.rs
to the examples/*/test
folder.
@karatakis any ideas? |
@billy1624 it needs to be ported to the functional API. After we finish the functional API I can continue the work. With the functional API we can skip the derive macro, so the task would be easier to implement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @karatakis for the input!! I agree, we should come back to this after we finished implementing the functional API.
looks like my pr is not needed and not up to date as like karatakis said the mutations are now in the functional API... |
@floffel, thanks for the initial pull request. It was a great inspiration. |
Hi 👋
First of all: Thank you for your work, I already learned a lot! :)
I experimented with graphql and SeaQL and wanted some mutations... So I tried to implement it, following the style of the existing macros.
This PR introduces the new derive macro
seaography::macros::Mutation
for every model/entity and#[seaography_mutation(skip=true)]
for every record to be skipped.I would love to hear for you if this code could be of any use.
PR Info
New Features
Usage example:
examples/*/src/mutation_root.rs:
examples/*/src/entities/actor.rs:
examples/*/src/entities/address.rs:
examples/*/src/main.rs