Skip to content

Use DjangoObjectType (or something like it) as an Input class? #121

Closed
@nuschk

Description

@nuschk

We're using Graphene with Relay for some boring CRUD style mutations. Now, since we have some rather large (i.e., many fields) models, it's a bit tedious and also error-prone, to repeat typing in the model's fields again for each mutation. Is it possible to use DjangoObjectType for this (from my 1st try it seems that, no)?

I'm mainly interested in the Meta class' model and only_fields options.

And guys, thanks for the hard work on such a cool tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions