DynamoDB: Not Begins With (Guide w/ Code Examples)

Provided by Rafal Wilinski
The DynamoDB JavaScript SDK does not have a method specifically called "not begins with." However, you can use the scan or query operations with a FilterExpression that uses the not_begins_with method to retrieve items that do not have an attribute that begins with a certain value.
const AWS = require('aws-sdk'); const dynamoDB = new AWS.DynamoDB({region: 'us-west-2', apiVersion: '2012-08-10'}); const params = { TableName: 'my-table', FilterExpression: 'not_begins_with(attribute, :val)', ExpressionAttributeValues: { ':val': {S: 'example'} } }; dynamoDB.scan(params, (err, data) => { if (err) { console.log(err); } else { console.log(data); } });
Similar Code Examples
- DynamoDB: Query Group By
- DynamoDB: Like
- DynamoDB: Attribute Not Null
- DynamoDB BatchWriteItem in Typescript
- DynamoDB: Delete Table
- DynamoDB: Query Date Range
- DynamoDB Get in Typescript
- DynamoDB: Get Last Inserted Item
- DynamoDB: Delete All Items With Partition Key
- DynamoDB: Get Last 10 Records
- DynamoDB: Query Greater Than
- DynamoDB: Increment Counter
- DynamoDB: Get By ID
- DynamoDB: Create if Not Exists
- DynamoDB: Query Items
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
- New in Dynobase 3.0
- Semantic and Vector Search
- Schema Explorer
- Visual JSON Path Filtering
- Visual Item Diff
- MCP Server for AI Tools
- Use SQL with DynamoDB
- Import CSV To DynamoDB
- Import JSON To DynamoDB
- Export DynamoDB To JSON
- Export DynamoDB To S3
- Export DynamoDB To CSV
- DynamoDB Update Item
- DynamoDB Delete All Items
- DynamoDB Delete Item
- DynamoDB Create Table
- DynamoDB Delete Table
- DynamoDB Conditional Update
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase