1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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 });
}
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a 7 mois
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
@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]"