Dan Taylor

Results 15 comments of Dan Taylor

Here's an example I was able to get working with graphene 2.0, with both create and edit operations: ```python import graphene import graphene_sqlalchemy from graphene.types.utils import yank_fields_from_attrs from graphene.types.objecttype import...

@Toilal yes, I ran into some troubles getting relationships to work but ended up with a solution that is workable enough for my project. One problem if you try to...

@flewellyn let me know if you have any feedback regarding the classes, I'm happy to make updates to them. I'd like to merge in my classes with @Toilal's PR but...

@flewellyn sorry about the missing imports! I had extracted this from my code. For validation and pre-processing I have an "on_before_commit" method that mutations can optionally override by defining e.g.:...

@flewellyn ah that was a silly bug, thank you for finding that! I've updated the gist, the on_before_commit applies to all operations now.

Yep, using kwargs['input'] should allow you to get the unmodified input data, while the model variable gives you the created model. I figure it's nice to be able to access...

@Toilal re: relationships I've left some comments on https://github.com/graphql-python/graphene-sqlalchemy/issues/29 on how I've been handling them.

@syrusakbary note that there's been quite a bit of improvements to these classes on #29, the latest versions are available as gists in that issue

Sorry for the delayed response, for some reason it is not shown in the comments, but the user worked around the issue by disabling the "Just My Code" feature in...

@syrusakbary any update on this thread? I am using graphene in production and unfortunately it simply doesn't scale for even the moderate data sets being returned by my API. I'm...