Skip to content

Disable Table Schema Table Warning #55

Answered by adrianpraja
collindutter asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Collin,

Yes, you can disable the warning by providing the table structure

	const DynamodbFactory = require('@awspilot/dynamodb')
	var DynamoDB = new DynamodbFactory( new AWS.DynamoDB() );

	// disable missing schema warning for table mytable
	DynamoDB.schema([
		{
			TableName: 'mytable',
			KeySchema: [
				{ 
					AttributeName: "my_partition_key",
					KeyType: "HASH"
				}, 
				{ 
					AttributeName: "my_sort_key", 
					KeyType: "RANGE" 
				}
			]
		},
	])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianpraja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #54 on November 11, 2021 05:17.