amplication / amplication/prisma-schema-dsl

Improvement in function parameters

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
backlog stale
Dominant language
TypeScript
Stars
113
Forks
11
PR merge metrics
No merged PRs in 30d

Description

It would be more interesting if instead of having fixed order parameters, an object is used for the parameters in the functions createScalarField, createObjectField, createDataSource. An article to use as a reference: [The Options Object Pattern with TypeScript](https://medium.com/@bchadwickfrance/the-options-object-pattern-with-typescript-a14f33306ec8).

Example implementation:
`createDataSource({ name: string, provider: DataSourceProvider, url: string | DataSourceURLEnv }): DataSource`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.