We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to deep filter translation fields I get this type error:
Type '{ _filter: { languages_code: { _eq: Locale; }; }; }' is not assignable to type '{ [x: string]: (... & { _sort?: string | string[] | undefined; _filter?: QueryFilter<CustomDirectusTypes, any> | undefined; _search?: string | undefined; _limit?: number | undefined; _offset?: number | undefined; _page?: number | undefined; }) | undefined; } & { ...; }'.
My code for filtering:
const devlogPosts = await directus.request( readItems("devlog", { fields: [ "date_published", { translations: ["title", "languages_code", "slug"] }, ], deep: { translations: { <-- ERROR POPS HERE _filter: { languages_code: { _eq: locale }, }, }, }, sort: ["-date_published"], }), );
Filtering works as intended when using the code above. I only have a problem with the type error.
The text was updated successfully, but these errors were encountered:
WoLfulus
No branches or pull requests
Description of the bug
When trying to deep filter translation fields I get this type error:
My code for filtering:
Steps To Reproduce
Additional Information
Filtering works as intended when using the code above. I only have a problem with the type error.
The text was updated successfully, but these errors were encountered: