Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
quiero actualizar dynamodbTable y no sé si estoy equivocado en dynomodb y qraphQL así que muéstrame

Me canso de Actualizar mi tabla de dynamoDB, por lo que me llama la atención el esquema y el código, y luego sé lo que me equivoqué con este código en javascript y el esquema. ¡Por favor, ayúdenme a solucionarlo! ese codigo

este registro de error del grupo de juegos de apolo

 { "errors": [ { "message": "The provided key element does not match the schema"

Este esquema de Graphql

 > updateJobApplication(input:UpdateJobApplication) : JobApplication! > > > input UpdateJobApplication { > postID:ID! > createdByUserId:ID > workTypeJobApplicationList: \[UpdateWorkTypeJobApplication!\] > technicianList: \[UpdateTechnician\] > > > input UpdateWorkTypeJobApplication { > workType: String > isLinked: Boolean > fieldID: String > jobList: \[ID\] > totalJobList: \[UpdateTotalJobApplication!\] } > > input UpdateTechnician { > userID: ID > getUser: String } > > input UpdateTotalJobApplication { > fieldValue: String > registerQty: Int }

Tabla de dynamodb

 ***TableDynamoDbTable: { Type: "AWS::DynamoDB::Table", Properties: { TableName: ***** BillingMode: "PAY_PER_REQUEST", KeySchema: [ { AttributeName: "postID", KeyType: "HASH" }, { AttributeName: "applicationID", KeyType: "RANGE" }, ], GlobalSecondaryIndexes: [ { IndexName: "username", KeySchema: [{ AttributeName: "username", KeyType: "HASH" }], Projection: { ProjectionType: "ALL", }, }, ], AttributeDefinitions: [ { AttributeName: "postID", AttributeType: "S" }, { AttributeName: "applicationID", AttributeType: "S" }, ], }, },

Código basado a continuación: usando javascript

 updateJobApplication: async (_parent, _args, _ctx, _info): Promise<IJobApplication> => { const dynamoDb = _ctx.db const JOB_APPLICATION_TABLE_NAME = _ctx.JOB_APPLICATION_TABLE_NAME const args = _args.input const appPeding = _args.input const updateApplication = { ...appPeding[0], } console.log("ARGS", args) const params = { TableName: JOB_APPLICATION_TABLE_NAME, Key: { postID: args.postID, // applicationID: args.applicationID, }, Item: updateApplication, } await dynamoDb.update(params).promise() console.log(params) return updateApplication` },

No sé, ¿me equivoco en qué línea, por favor, ayúdenme?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!