Skip to content
New issue

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

[SDK] Can't read items with meta #19298

Closed
pierre-H opened this issue Jul 30, 2023 · 4 comments
Closed

[SDK] Can't read items with meta #19298

pierre-H opened this issue Jul 30, 2023 · 4 comments

Comments

@pierre-H
Copy link
Contributor

Describe the Bug

With the JS SDK (v11.0.1), we can't readItems with meta

To Reproduce

 apiClient.request(readItems('posts', {
		filter: {
			categorie: {
				slug: {
					_eq: params.slug
				}
			}
		},
		page,
		sort: ['sort', 'name'],
		meta: '*'
	}));

Directus Version

v10.5.0

Hosting Strategy

Self-Hosted (Custom)

@br41nslug
Copy link
Member

Correct, please refer to aggregation for your meta information needs :) https://docs.directus.io/reference/query.html#aggregation-grouping

@br41nslug br41nslug closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2023
@eytanProxi
Copy link

So we need two queries now instead of one 😢 ...

@hambanet
Copy link

@br41nslug For REST queries, the docs say ?meta=* is valid.

The new SDK doesn't appear to permit the meta parameter in REST queries. It should be permitted, no?

image

@hambanet
Copy link

Issue #15665 seems to clear this up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants