• Directly access items from a table by primary key or a secondary index by delegating to QueryCommand.

    Example

    df.query('movies', { actor: 'Tom Hanks', movie: 'Toy Story' })
    

    Returns

    The same response returned by send()ing this command

    Parameters

    • tableName: string

      The name of the table containing the requested items

    • keyCondition: Filter

      An object describing the comparisons used to generate KeyConditionExpression, ExpressionAttributeNames, and ExpressionAttributeValues

    • Optional options: Partial<FacadeQueryInput>

      The options accepted by the original QueryCommand class, plus an optional filter field that generates FilterExpression

    Returns Promise<QueryCommandOutput>

Generated using TypeDoc