You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per #103, we want to support indexes on DynamoDB tables. How should we do this?
I think the desired experience should be similar to how the table is created where the developer only needs to provide a tuple of the columns to index:
classRestarauntRecordextendsRecord({id: string,byUserId: string,status: string,avgRating: number.apply(Minimum(?)).apply(Maximum(?))starCount: string,// or integer?number? Not sure why your definition defines this column as a string?}){}consttable=newDynamoDB.Table(stack,'id',RestarauntRecord,'key');constbyStars=table.globalIndex(['starCount','avgRating']);constbyUserId=table.globalIndex(['byUserId','avgRating']);constbyStatus=table.globalIndex(['status','avgRating']);
What about projections? Should developers create another record class to represent the projection, or can we support an array of columns to project?
constprojected=table.globalIndex('starCount','avgRating',// columns to project?['starCount','byUserId','avgRating']);
The text was updated successfully, but these errors were encountered:
As per #103, we want to support indexes on DynamoDB tables. How should we do this?
I think the desired experience should be similar to how the table is created where the developer only needs to provide a tuple of the columns to index:
@Birowsky's example:
What about projections? Should developers create another record class to represent the projection, or can we support an array of columns to project?
The text was updated successfully, but these errors were encountered: