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: alias does not exist in type 'QueryMany<DefaultType> #11870

Closed
3 tasks done
rashidpathiyil opened this issue Feb 26, 2022 · 1 comment · Fixed by #12632
Closed
3 tasks done

SDK: alias does not exist in type 'QueryMany<DefaultType> #11870

rashidpathiyil opened this issue Feb 26, 2022 · 1 comment · Fixed by #12632
Labels

Comments

@rashidpathiyil
Copy link

Preflight Checklist

Describe the Bug

SDK: 'alias' does not exist in type 'QueryMany

To Reproduce

 const { data } = await directus.permissions.readByQuery({
          fields: ["action", "subject", "fields", "conditions"],
          alias: {
            subject: "collection",
            conditions: "permissions",
          },
          filter: {
            collection: {
              _nstarts_with: "directus",
            },
          },
        });

Errors Shown

Argument of type '{ fields: string[]; alias: { subject: string; conditions: string; }; filter: { collection: { _nstarts_with: string; }; }; }' is not assignable to parameter of type 'QueryMany'.
Object literal may only specify known properties, and 'alias' does not exist in type 'QueryMany'.ts(2345)

What version of Directus are you using?

9.5.2

What version of Node.js are you using?

16.14.0

What database are you using?

Postgres 13

What browser are you using?

Edge

What operating system are you using?

Windows 11

How are you deploying Directus?

running locally

@rashidpathiyil rashidpathiyil changed the title SDK: alias does not exist in type 'QueryMany<DefaultType> SDK: alias does not exist in type 'QueryMany<DefaultType> Feb 26, 2022
@rashidpathiyil
Copy link
Author

I think many other like 'aggregate', 'groupBy' does not exist in type.

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

Successfully merging a pull request may close this issue.

2 participants