Skip to content

Conversation

@tychokamphuis-aqqo
Copy link

Fixed such that HasManyThrough works properly with a lambda function.
The following query was not working for us:
127.0.0.1:8000/api/KnowledgebaseCategories?$expand=KnowledgebaseArticles($filter=knowledgebase_article_uri eq 'add-new-user')&$filter=KnowledgebaseArticles/any(s:s/knowledgebase_article_uri eq 'add-new-user')

KnowledgebaseArticles have a pivot table called 'Knowledgebase_articles_to_categories' for the many-to-many relation with KnowledgebaseCategories.

@27pchrisl
Copy link
Contributor

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

@tychokamphuis-aqqo
Copy link
Author

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

Hi @27pchrisl, any updates on this? I know that the code might not be according to the standards, however this is how it works for us. If you give me any hints on how to improve the code in such way that it more up to the standards that would be great!

Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants