graphene_elastic package¶
Subpackages¶
Submodules¶
graphene_elastic.advanced_types module¶
-
class
graphene_elastic.advanced_types.
FileFieldType
(*args, **kwargs)[source]¶ Bases:
graphene.types.objecttype.ObjectType
-
chunk_size
= <graphene.types.scalars.Int object>¶
-
content_type
= <graphene.types.scalars.String object>¶
-
data
= <graphene.types.scalars.String object>¶
-
length
= <graphene.types.scalars.Int object>¶
-
md5
= <graphene.types.scalars.String object>¶
-
-
class
graphene_elastic.advanced_types.
MultiPolygonFieldType
(*args, **kwargs)[source]¶ Bases:
graphene_elastic.advanced_types._CoordinatesTypeField
-
coordinates
= <graphene.types.structures.List object>¶
-
graphene_elastic.constants module¶
Constants module. Contains Elasticsearch constants, lookup constants, functional constants, suggesters, etc.
graphene_elastic.converter module¶
graphene_elastic.enums module¶
-
class
graphene_elastic.enums.
NoValue
[source]¶ Bases:
enum.Enum
String values in enum.
Example:
>>> class Color(NoValue): >>> RED = 'stop' >>> GREEN = 'go' >>> BLUE = 'too fast!'
Graphene example:
>>> @graphene.Enum.from_enum >>> class ColorOptions(NoValue): >>> >>> RED = 'stop' >>> GREEN = 'go' >>> BLUE = 'too fast!'
graphene_elastic.fields module¶
-
class
graphene_elastic.fields.
ElasticsearchConnectionField
(type, *args, **kwargs)[source]¶ Bases:
graphene.relay.connection.IterableConnectionField
-
args
¶
-
classmethod
connection_resolver
(resolver, connection_type, root, info, connection_field=None, **args)[source]¶
-
default_filter_backends
¶
-
doc_type
¶
-
document
¶
-
field_args
¶
-
fields
¶
-
filter_backends
¶
-
node_type
¶
-
reference_args
¶
-
registry
¶
-
type
¶
-
graphene_elastic.helpers module¶
-
graphene_elastic.helpers.
to_camel_case
(snake_str: str) → str[source]¶ Convert snake_case to camelCase.
Capitalize the first letter of each part except the first one with the capitalize method and join all the parts together.
Adapted from this response in StackOverflow http://stackoverflow.com/a/19053800/1072990
Parameters: snake_str – Returns:
graphene_elastic.settings module¶
graphene_elastic.utils module¶
Module contents¶
-
class
graphene_elastic.
ElasticsearchConnectionField
(type, *args, **kwargs)[source]¶ Bases:
graphene.relay.connection.IterableConnectionField
-
args
¶
-
classmethod
connection_resolver
(resolver, connection_type, root, info, connection_field=None, **args)[source]¶
-
default_filter_backends
¶
-
doc_type
¶
-
document
¶
-
field_args
¶
-
fields
¶
-
filter_backends
¶
-
node_type
¶
-
reference_args
¶
-
registry
¶
-
type
¶
-