graphene_elastic.types package

Submodules

graphene_elastic.types.elastic_types module

graphene_elastic.types.elastic_types.construct_fields(document, registry, only_fields, exclude_fields)[source]
Args:
document (elasticsearch_dsl.Document): registry (graphene_elastic.registry.Registry): only_fields ([str]): exclude_fields ([str]):
Returns:
(OrderedDict, OrderedDict): converted fields and self reference fields.
graphene_elastic.types.elastic_types.construct_self_referenced_fields(self_referenced, registry)[source]
class graphene_elastic.types.elastic_types.ElasticsearchObjectTypeOptions(class_type)[source]

Bases: graphene.types.objecttype.ObjectTypeOptions

connection = None
document = None
filter_fields = ()
registry = None
search_fields = ()
search_nested_fields = ()
class graphene_elastic.types.elastic_types.ElasticsearchObjectType(*args, **kwargs)[source]

Bases: graphene.types.objecttype.ObjectType

classmethod get_node(info, id)[source]
id
classmethod is_type_of(root, info)[source]
classmethod rescan_fields()[source]

Attempts to rescan fields and will insert any not converted initially.

resolve_id(info)[source]

graphene_elastic.types.json_string module

class graphene_elastic.types.json_string.JSONString(*args, **kwargs)[source]

Bases: graphene.types.json.JSONString

static serialize(dt)[source]
graphene_elastic.types.json_string.to_serializable(o)[source]

Module contents