graphene_elastic.types package

Submodules

graphene_elastic.types.elastic_types module

class graphene_elastic.types.elastic_types.ElasticsearchObjectType(*args, **kwargs)[source]

Bases: ObjectType

classmethod get_node(info, id)[source]
property 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]
class graphene_elastic.types.elastic_types.ElasticsearchObjectTypeOptions(class_type)[source]

Bases: ObjectTypeOptions

connection = None
document = None
registry = None
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]

graphene_elastic.types.json_string module

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

Bases: JSONString

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

Module contents