1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
I figured it out. Attribute Values are type MAP.
try
{
const tableName = 'BattleRoyalePlayerLobbyTable';
const indexName = 'lobbyId-index';
const keyConditionExpression = '#lobbyId = :lobbyid';
const expressionAttributeNames = {'#lobbyId': 'lobbyId'};
const expressionAttributeValues = { ':lobbyid': message.lobbyId };
const exclusiveStartKey = {};
let queryResult = GameSparks().DynamoDB().QueryIndex(
tableName,
indexName,
keyConditionExpression,
expressionAttributeNames,
expressionAttributeValues,
exclusiveStartKey);
return GameSparks().Messaging().Response({ 'players': queryResult.Items });
}
catch (ex)
{
return GameSparks().Messaging().Response({ "players": [], "error": ex.message });
}
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
@Kirkules hi can you help me? I made a query just like yours but its gives me this error "Content does not match constraints applied by annotation [PatternConstraint]"