Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 509 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 509 Bytes

DjangoReact

Generate React components on top of a datasource

import yourschema from schema

# Datasource is a django-graphene graphql datapoint
# You provide the schema to DjangoReact

class UserForm(DjangoReact.graphene.CRUDComponent):
  class Meta:
    schema = schema
    details = "query.user"
    update =  "mutation.updateUser"
    create = "mutation.createUser"
    delete = "mutation.deleteUser"
    
    fields = ['first_name','username']
    primary_key = 'id'
  
  fist_name =