Skip to content

Returns the bank's subclass data based on its search of bank name and bank state using django-graphene.

Notifications You must be signed in to change notification settings

JeetKaria06/Django-GraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-GraphQL

Returns the bank's subclass data based on its search of bank name and bank state using django-graphene.

Approach to solve the problem

  • Creating a server using django and then connecting it with the postgres backend.
  • Adding all the required tables and views in the backend and inserting all the data.
  • python manage.py inspectdb --include-views will generate the updated models.py file according to the changed database.
  • After updating models.py in the django app, externally install graphene for django to avail graphql api service and included it in the settings.py's INSTALLED_APPS list.
  • Gave a pointer to the schema for graphql endpoint.
  • Defining graphql endpoint in urls.py.
  • Creating queries and mutations (not needed in current problem).
  • Implemented search on multiple fields query.

Tools/Tech used

  • Django
  • Django graphene
  • PostgreSQL
  • Heroku
  • Postman

For the crazy ones to explore its deployed here and the testcases of the post requests are here.

About

Returns the bank's subclass data based on its search of bank name and bank state using django-graphene.

Topics

Resources

Stars

Watchers

Forks

Languages