Skip to content

how to Join with get_query #54

@ssomnoremac

Description

@ssomnoremac

Just trying to filter on a field from a foreign table.

This doesn't seem to work

def resolve_articles(self, args, context, info):
        query = Article.get_query(context)
        authorName = args.get('authorName')
        return query.join(Author).filter(Author.name == authorName)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions