dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
7 lines (6 loc) • 430 B
TypeScript
import type { QueryCommandInput } from '@aws-sdk/lib-dynamodb';
import type { Table } from '../../../../table/index.js';
import type { Query } from '../types.js';
type QueryParser = <TABLE extends Table, QUERY extends Query<TABLE>>(table: TABLE, query: QUERY) => Pick<QueryCommandInput, 'KeyConditionExpression' | 'ExpressionAttributeNames' | 'ExpressionAttributeValues'>;
export declare const parseQuery: QueryParser;
export {};