Skip to content

add support for unfolding to python schema #470

@thet0ast3r

Description

@thet0ast3r

Is your feature request related to a problem? Please describe.

adding _unfoldable = [] does nothing when creating a schema with the python client.
E.g.:

myschema = Schema()


class Method(DocumentTemplate):
    _schema = myschema
    linked = OtherClass
    _unfoldable = [] #

Expected output: The resulting schema has @unfoldable in the document definition, but it hasn't.

Describe the solution you'd like

for unfoldable, it seems that it could just function analogous to _schema or _abstract. so _unfoldable = [].

Describe alternatives you've considered
Decorator.

Additional context
Im trying to use terminus exclusively from python (i.e. i'd like to be able to access all functionality in a pythonic way, including retrieval -> need to be able to have unfoldable for the db to return a subgraph/tree instead of only a list of solutions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: python clientrelevant to python clientenhancementNew feature or requestpythonPull requests that update python codetriageissue to be triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions