Skip to content

Support complex joins #5

@alonroth

Description

@alonroth

Hi,

First of all, thanks for this library, it's been making our life much easier so far while working with GraphQL (Graphene).

I was wondering why this library doesn't support complex joins.

I was able to allow it pretty fast - and I was wondering what I'm missing here - I was just adding the following:

        if hasattr(self.parent_property.primaryjoin, 'clauses'):
            q = q.filter(
                *self.parent_property.primaryjoin.clauses
            )

after:
q = q.filter(self._join_col.in_(param_values))

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions