swift-painter-31084
06/25/2019, 4:58 PMendpoint.get( '/posts/{postId}', ( req, res ) => {
const post = req.params.postId;
console.log( post );
postsTable.get( { post } ).then( ( value ) => {
res.status( 200 ).json( value );
} );
} );
white-balloon-205
post
as a primary key for this table.swift-painter-31084
06/25/2019, 9:17 PMwhite-balloon-205
postsTable.get( { post: post } )
, so it's getting the primary key "post"
whose value matches the value of post
.