Index

Graphene

  1. Queries
  2. migrations
  3. UserModel
  4. User Schema
  5. cors
  6. static
  7. headers
  8. payumoney
  9. imageupload
  10. Total count

headers

class AuthorizationMiddleware(object):
    def resolve(self, next, root, info, **args):
        if info.field_name == 'user':
            auth_header = info.context.META.get('HTTP_AUTHORIZATION')
            if valid_header(auth_header):
                return None
        return next(root, info, **args)