Skip to content

Query + relations #114

Answered by kbruxvoort
DrWaan asked this question in Q&A
Feb 21, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

In order to use the ID in the query you need to pass "contains" or "does_not_contain"

"filter": {
    "property": relation_name,
    "relation": {
        "contains": relation_id
    }
}

The second filter is failing because you are passing true as a string instead of a boolean

"filter": {
    "property": relation_name,
    "relation": {
        "is_empty": True
    }
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@kbruxvoort
Comment options

Answer selected by ramnes
@DrWaan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants