Init
This commit is contained in:
commit
0029086b3f
148 changed files with 19047 additions and 0 deletions
14
commands/add-object/template/api/blank.service.ts
Normal file
14
commands/add-object/template/api/blank.service.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { {{ nameFirst }} } from '@baseline/types/{{ nameKebab }}';
|
||||
import { getDynamodbConnection } from '@baselinejs/dynamodb';
|
||||
import { ServiceObject } from '../../util/service-object';
|
||||
|
||||
const dynamoDb = getDynamodbConnection({
|
||||
region: `${process.env.API_REGION}`,
|
||||
});
|
||||
|
||||
export const {{ nameCamel }}Service = new ServiceObject<{{ nameFirst }}>({
|
||||
dynamoDb: dynamoDb,
|
||||
objectName: '{{ nameFirst }}',
|
||||
table: `${process.env.APP_NAME}-${process.env.NODE_ENV}-{{ nameKebab }}`,
|
||||
primaryKey: '{{ primaryKey }}',
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue