aws-amplify / aws-amplify/amplify-data

Want to get type of filters.

Open
#430 2 comments 0 reactions 1 assignee Claimed by @chrisbonifacio View on GitHub
data-schema feature-request Gen 2 transferred
Dominant language
TypeScript
Stars
18
Forks
23
Avg merge
26m
Merged PRs (30d)
1

Description

### Environment information

```plain text
System:
OS: macOS 15.1
CPU: (8) arm64 Apple M2
Memory: 146.84 MB / 16.00 GB
Shell: /bin/zsh
Binaries:
Node: 20.9.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.1.0 - /usr/local/bin/npm
pnpm: undefined - undefined
NPM Packages:
@aws-amplify/auth-construct: 1.4.0
@aws-amplify/backend: 1.6.0
@aws-amplify/backend-auth: 1.3.0
@aws-amplify/backend-cli: 1.4.0
@aws-amplify/backend-data: 1.1.6
@aws-amplify/backend-deployer: 1.1.6
@aws-amplify/backend-function: 1.7.3
@aws-amplify/backend-output-schemas: 1.4.0
@aws-amplify/backend-output-storage: 1.1.3
@aws-amplify/backend-secret: 1.1.4
@aws-amplify/backend-storage: 1.2.2
@aws-amplify/cli-core: 1.2.0
@aws-amplify/client-config: 1.5.1
@aws-amplify/deployed-backend-client: 1.4.2
@aws-amplify/form-generator: 1.0.3
@aws-amplify/model-generator: 1.0.8
@aws-amplify/platform-core: 1.1.0
@aws-amplify/plugin-types: 1.3.1
@aws-amplify/sandbox: 1.2.4
@aws-amplify/schema-generator: 1.2.5
aws-amplify: 6.10.2
aws-cdk: 2.164.1
aws-cdk-lib: 2.164.1
typescript: 5.6.3
AWS environment variables:
AWS_STS_REGIONAL_ENDPOINTS = regional
AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables
```

### Describe the feature

The `listBy... `, which is generated when the secondary index is used, is exported and can be used by `import type`.

### Use case

The methods of `listBy... ` methods with application-side sort key switch statements, even if the function type is any type to avoid the error “Stack to compare is too deep. ts(2321)”, it can still be used for type completion to work properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.