code: def all_fields(self):
          
          fields = []
          if self.parent_type:
              fields.extend(self.parent_type.all_fields)
          fields.extend([f for f in self.fields])
          return fields
docs: Returns a list of all fields. Subtype fields come before this type's
          fields.