MCPcopy Index your code

hub / github.com/graphql-python/graphene-django / functions

Functions788 in github.com/graphql-python/graphene-django

↓ 209 callersMethodcreate
(self, validated_data)
graphene_django/rest_framework/tests/test_mutation.py:63
↓ 177 callersMethodexecute
(self, sql, params=None)
graphene_django/debug/sql/tracking.py:152
↓ 50 callersFunctionurl_string
(string="/graphql", **url_params)
graphene_django/tests/test_views.py:16
↓ 46 callersFunctionresponse_json
(response)
graphene_django/tests/test_views.py:27
↓ 33 callersFunctionassert_conversion
(django_field, graphene_field, *args, **kwargs)
graphene_django/tests/test_converter.py:33
↓ 33 callersMethodsave
(self)
graphene_django/forms/tests/test_mutation.py:23
↓ 27 callersFunctionassert_conversion
(rest_framework_field, graphene_field, **kwargs)
graphene_django/rest_framework/tests/test_field_converter.py:31
↓ 20 callersMethodall
(self)
graphene_django/filter/tests/conftest.py:118
↓ 20 callersMethodfilter
Override the default filter class to check first whether the list is empty or not. This needs to be done as in this case we e
graphene_django/filter/filters/list_filter.py:34
↓ 17 callersFunctionget_django_field_description
(field)
graphene_django/converter.py:177
↓ 16 callersFunctionassert_conversion
(django_field, graphene_field, *args, **kwargs)
graphene_django/forms/tests/test_converter.py:22
↓ 16 callersMethodcount
(self)
graphene_django/filter/tests/conftest.py:170
↓ 13 callersFunctionmock_info
()
graphene_django/rest_framework/tests/test_mutation.py:19
↓ 12 callersFunctioncamelize
(data)
graphene_django/utils/utils.py:33
↓ 12 callersMethodmutate_and_get_payload
(cls, root, info, **input)
graphene_django/rest_framework/mutation.py:165
↓ 11 callersFunctionconvert_django_field
(field, registry=None)
graphene_django/converter.py:182
↓ 11 callersFunctionget_form_field_description
(field)
graphene_django/forms/converter.py:23
↓ 8 callersFunctionassert_arguments
(field, *arguments)
graphene_django/filter/tests/test_fields.py:64
↓ 8 callersFunctioninitialize
()
examples/starwars/data.py:4
↓ 7 callersMethodclean
(self, value)
graphene_django/forms/forms.py:12
↓ 7 callersFunctionconvert_django_field_with_choices
( field, registry=None, convert_choices_to_enum=None )
graphene_django/converter.py:151
↓ 7 callersFunctionconvert_form_field
(field)
graphene_django/forms/converter.py:28
↓ 7 callersMethodget_type_for_model
(self, model)
graphene_django/registry.py:19
↓ 6 callersFunctionconvert_serializer_field
Converts a django rest frameworks field to a graphql field and marks the field as required if we are creating an input type and the field
graphene_django/rest_framework/serializer_converter.py:21
↓ 6 callersMethodfilter
(self, **kwargs)
graphene_django/filter/tests/conftest.py:121
↓ 6 callersFunctionj
(**kwargs)
graphene_django/tests/test_views.py:31
↓ 5 callersFunctionassert_not_orderable
(field)
graphene_django/filter/tests/test_fields.py:78
↓ 5 callersFunctionbatch_url_string
(**url_params)
graphene_django/tests/test_views.py:23
↓ 5 callersFunctiongenerate_enum_name
(django_model_meta, field)
graphene_django/converter.py:126
↓ 4 callersFunctionfields_for_form
(form, only_fields, exclude_fields)
graphene_django/forms/mutation.py:21
↓ 4 callersFunctionget_faction
(_id)
examples/starwars/data.py:61
↓ 4 callersFunctionget_global_registry
()
graphene_django/registry.py:32
↓ 4 callersMethodget_queryset
(cls, queryset, info)
graphene_django/types.py:284
↓ 4 callersMethodget_queryset
(cls, queryset, info)
graphene_django/tests/test_get_queryset.py:391
↓ 4 callersFunctionget_reverse_fields
Searches through the model's ancestry and gets reverse relationships the models Yields a tuple of (field.name, field)
graphene_django/utils/utils.py:50
↓ 4 callersFunctionjl
(**kwargs)
graphene_django/tests/test_views.py:35
↓ 4 callersFunctionmaybe_queryset
(value)
graphene_django/utils/utils.py:89
↓ 4 callersMethodsetup_schema
(self, graphene_settings, max_limit)
graphene_django/tests/test_query.py:1550
↓ 3 callersMethod_record
(self, method, sql, params)
graphene_django/debug/sql/tracking.py:96
↓ 3 callersMethoddistinct
(self)
graphene_django/filter/tests/conftest.py:173
↓ 3 callersMethodfrom_errors
(cls, errors)
graphene_django/types.py:301
↓ 3 callersFunctionfunc
(*args, **kwargs)
graphene_django/tests/test_utils.py:91
↓ 3 callersFunctionget_args
(field)
graphene_django/filter/tests/test_fields.py:60
↓ 3 callersFunctionget_graphene_type_from_serializer_field
(field)
graphene_django/rest_framework/serializer_converter.py:14
↓ 3 callersFunctionget_model_fields
Gets all the fields and relationships on the Django model and its ancestry. Prioritizes local fields and relationships over the reverse relat
graphene_django/utils/utils.py:95
↓ 3 callersFunctiongraphql_query
Args: query (string) - GraphQL query to run operation_name (string) - If the query is a mutation or named query,
graphene_django/utils/testing.py:12
↓ 3 callersFunctionis_valid_django_model
(model)
graphene_django/utils/utils.py:109
↓ 3 callersMethodmutate_and_get_payload
(cls, root, info, **input)
graphene_django/forms/mutation.py:42
↓ 3 callersMethodnone
(self)
graphene_django/filter/tests/conftest.py:165
↓ 3 callersMethodregister
(self, cls)
graphene_django/registry.py:6
↓ 3 callersFunctionreporter_enum_convert_mutation_result
( ReporterInputType, choice_val_on_client=THIS_ON_CLIENT_CONVERTED )
graphene_django/forms/tests/test_djangoinputobject.py:200
↓ 3 callersMethodresolve
(self, next, root, info, **args)
graphene_django/debug/middleware.py:48
↓ 3 callersFunctionto_const
(string)
graphene_django/utils/str_converters.py:6
↓ 3 callersFunctionupdateURL
()
graphene_django/static/graphene_django/graphiql.js:99
↓ 2 callersFunction_get_model_ancestry
(model)
graphene_django/utils/utils.py:41
↓ 2 callersFunction_get_type
( rest_framework_field, is_input=True, convert_choices_to_enum=True, **kwargs )
graphene_django/rest_framework/tests/test_field_converter.py:13
↓ 2 callersFunction_set_errors_flag_to_context
(info)
graphene_django/forms/mutation.py:186
↓ 2 callersFunctionconvert_choices_to_named_enum_with_descriptions
(name, choices)
graphene_django/converter.py:107
↓ 2 callersFunctionconvert_serializer_to_input_type
(serializer_class)
graphene_django/rest_framework/serializer_converter.py:67
↓ 2 callersFunctionenum_convert_mutation_result_film
(FilmInputType)
graphene_django/forms/tests/test_djangoinputobject.py:282
↓ 2 callersFunctionfields_for_serializer
( serializer, only_fields, exclude_fields, is_input=False, convert_choices_to_enum=True,
graphene_django/rest_framework/mutation.py:25
↓ 2 callersMethodformat_error
(error)
graphene_django/views.py:423
↓ 2 callersMethodget_debug_result
(self)
graphene_django/debug/middleware.py:15
↓ 2 callersFunctionget_field_type
Try to get a model field corresponding Graphql type from the DjangoObjectType.
graphene_django/filter/utils.py:11
↓ 2 callersMethodget_form
(cls, root, info, **input)
graphene_django/forms/mutation.py:54
↓ 2 callersMethodget_node
(self, info, id)
graphene_django/tests/schema.py:29
↓ 2 callersMethodget_response
(self, request, data, show_graphiql=False)
graphene_django/views.py:215
↓ 2 callersMethodget_serializer_kwargs
(cls, root, info, **input)
graphene_django/rest_framework/mutation.py:133
↓ 2 callersFunctionimport_from_string
Attempt to import a class from a string representation.
graphene_django/settings.py:72
↓ 2 callersMethodjson_encode
(self, request, d, pretty=False)
graphene_django/views.py:255
↓ 2 callersFunctionlocationQuery
(params)
graphene_django/static/graphene_django/graphiql.js:29
↓ 2 callersMethodperform_mutate
(cls, form, info)
graphene_django/forms/mutation.py:101
↓ 2 callersFunctionset_rollback
()
graphene_django/utils/utils.py:119
↓ 1 callersMethodWrapper
(self)
graphene_django/debug/sql/tracking.py:21
↓ 1 callersMethod__init__
(self, _type, *args, **kwargs)
graphene_django/fields.py:22
↓ 1 callersMethod__init_subclass_with_meta__
( cls, form_class=None, only_fields=(), exclude_fields=(), **options )
graphene_django/forms/mutation.py:81
↓ 1 callersFunction_camelize_django_str
(s)
graphene_django/utils/utils.py:27
↓ 1 callersMethod_quote_expr
(self, element)
graphene_django/debug/sql/tracking.py:77
↓ 1 callersMethod_quote_params
(self, params)
graphene_django/debug/sql/tracking.py:83
↓ 1 callersMethodadd_result
(self, result)
graphene_django/debug/middleware.py:33
↓ 1 callersFunctionassert_orderable
(field)
graphene_django/filter/tests/test_fields.py:73
↓ 1 callersMethodcan_display_graphiql
(cls, request, data)
graphene_django/views.py:381
↓ 1 callersFunctionchoices
()
graphene_django/tests/models.py:18
↓ 1 callersFunctionclient_query
(client)
graphene_django/tests/test_utils.py:90
↓ 1 callersFunctionconstruct_fields
( model, registry, only_fields, exclude_fields, convert_choices_to_enum=None )
graphene_django/types.py:25
↓ 1 callersFunctionconvert_choice_field_to_enum
(field, name=None)
graphene_django/converter.py:144
↓ 1 callersFunctionconvert_choice_name
(name)
graphene_django/converter.py:81
↓ 1 callersFunctionconvert_enum
Check if the data is a enum option (or potentially nested list of enum option) and convert it to its value. This method is used to pre-p
graphene_django/filter/fields.py:14
↓ 1 callersFunctionconvert_serializer_field_to_enum
(field)
graphene_django/rest_framework/serializer_converter.py:165
↓ 1 callersFunctioncreate_ship
(ship_name, faction_id)
examples/starwars/data.py:47
↓ 1 callersFunctioncustom_filterset_factory
Create a filterset for the given model using the provided meta data
graphene_django/filter/filterset.py:42
↓ 1 callersMethoddisable_instrumentation
(self)
graphene_django/debug/middleware.py:42
↓ 1 callersMethodenable_instrumentation
(self)
graphene_django/debug/middleware.py:37
↓ 1 callersMethodexecute_graphql_request
( self, request, data, query, variables, operation_name, show_graphiql=False )
graphene_django/views.py:301
↓ 1 callersMethodfilter
Convert the filter value to a primary key before filtering
graphene_django/filter/filters/global_id_filter.py:14
↓ 1 callersFunctionget_accepted_content_types
(request)
graphene_django/views.py:38
↓ 1 callersFunctionget_choices
(choices)
graphene_django/converter.py:90
↓ 1 callersFunctionget_choices_as_callable
(choices_class)
graphene_django/tests/models.py:15
↓ 1 callersFunctionget_choices_as_class
(choices_class)
graphene_django/tests/models.py:8
↓ 1 callersMethodget_content_type
(request)
graphene_django/views.py:430
next →1–100 of 788, ranked by callers