-
Notifications
You must be signed in to change notification settings - Fork 766
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
Support for Django Rest Framework serializers #186
Support for Django Rest Framework serializers #186
Conversation
1 similar comment
1 similar comment
The code looks great! Once the docs are done, I will help to make all the tests pass in the different environments! |
@syrusakbary thanks! It will allow us to use the latest version of Django Rest Framework and to remove some code :) |
Would this allow for validations to be done with rest framework serializers? I think it would lower the barrier to switching to Graphene from rest framework, really cool stuff! |
The PR #202 is now merged into |
6c2f682
to
c389924
Compare
1 similar comment
@patrick91 Great! Let me know once is tested :) |
2 similar comments
I have been testing out this PR on a project and things are going well overall. I have just a couple additions in patrick91#1 -- but I can always make a separate PR to the base fork after this is merged if that's easier. |
Thanks! Did you also find yourself wanting to change the input type's name?
Maybe it is something I can add in, but I'm not sure it is needed :)
On Tue, Jul 11, 2017, 9:06 PM Jacob Foster ***@***.***> wrote:
I have been testing out this PR on a project and things are going well
overall. I have just a couple additions in patrick91#1
<patrick91#1> -- but I can always
make a separate PR to the base fork after this is merged if that's easier.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAotlTzzxVIbf8vdXi5gHVEX1YsC7rDgks5sM8e0gaJpZM4NopiD>
.
--
Patrick
|
You mean the static "input" name for the |
Thanks for your contribution. It's working great so far. Sometimes, one needs to add additional arguments to the serializer when instantiating it. It would be great if the instantiation was moved to a separate method so it can be easily overridden. |
Account for nested models and Dates/Times
@abdulhaq-e can you open an issue when this PR is merged? :) @syrusakbary this is ready to merge! @spockNinja added support for other fields and also nested serializers :) |
@patrick91 I'll submit a PR once this is merged. |
Hello from PyConWeb!
I've been working on an integration for Django Rest Framework, to allow the use of its
serializers as GraphQL mutation.
Let me know if this is something you wanted to be merged into graphene-django :)
It's still a work in progress, but I was able to have a working Mutation from a Serializer, still haven't pushed all the code :)
Ideally the code for the Mutation will look like this:
SerializerMutation
will take are of the rest, defining the fields for the output, the fields for the input and the errors.TODO:
thanks @simobasso