INNER CODE UNIT · Python

__str__

gsmith257-cyber/GraphCrawler · clairvoyance/graphql.py:192

    def __str__(self):
        return str(self.__dict__)

    def to_json(self) -> Dict[str, Any]:
        j = {"kind": self.kind, "name": self.name, "ofType": None}

        if self.non_null_item:
            j = {"kind": "NON_NULL", "name": None, "ofType": j}

        if self.list:
            j = {"kind": "LIST", "name": None, "ofType": j}

        if self.non_null:
            j = {"kind": "NON_NULL", "name": None, "ofType": j}

        return j

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…