docarray.document.mixins.strawberry module# class docarray.document.mixins.strawberry.StrawberryMixin[source]# Bases: object Provide helper functions to convert to/from a Strawberry model to_strawberry_type()[source]# Convert a Document object into a Strawberry type. Return type: StrawberryDocument classmethod from_strawberry_type(model)[source]# Build a Document object from a Strawberry model Parameters: model – the Strawberry data model object that represents a Document Return type: T Returns: a Document object