nikitastupin / clairvoyance

Obtain GraphQL API schema even if the introspection is disabled
Apache License 2.0
1.02k stars 92 forks source link

"Not implemented" exception in TypeRef.to_json() #9

Closed nikitastupin closed 3 years ago

nikitastupin commented 3 years ago

Input:

(Pdb) pp self.__dict__
{'is_list': True,
 'is_list_item_nullable': True,
 'is_nullable': False,
 'kind': 'SCALAR',
 'list': True,
 'name': 'String',
 'non_null': True,
 'non_null_item': False}

Output:

(Pdb) where
...
> /Users/nikitastupin/Documents/repos/clairvoyance/clairvoyance/graphql.py(234)to_json()
-> raise Exception("Not implemented")

Expected output:

{
  "name": null,
  "kind": "NON_NULL",
  "ofType": {
    "name": null,
    "kind": "LIST",
    "ofType": {
      "name": "String",
      "kind": "SCALAR",
      "ofType": null
    }
  }
}