Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(jsdoc): docPropagation docs #55

Merged
merged 4 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ You are able to control certain aspects of the Nexus Prisma code generation.

##### `docPropagation.JSDoc: boolean`

- **`@summary`** Should Prisma Schema docs propagate as JSdoc?
- **`@summary`** Should Prisma Schema docs propagate as JSDoc?
- **`@default`** `true`

##### `docPropagation.GraphQLDocs: boolean`
Expand Down
16 changes: 13 additions & 3 deletions src/generator/gentime/settingsSingleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,28 @@ export namespace Gentime {
* TODO
*/
projectIdIntToGraphQL?: 'ID' | 'Int'
// TODO add some examples
/**
jasonkuhrt marked this conversation as resolved.
Show resolved Hide resolved
* TODO
* Should Prisma Schema docs propagate as docs?
*
* @default true
*/
docPropagation?:
| boolean
| {
/**
* TODO
* Should Prisma Schema docs propagate as JSDoc?
*
* @default true
*/
JSDoc?: boolean
/**
* TODO
* Should Prisma Schema docs propagate as GraphQL docs?
*
* @remarks When this is disabled it will force `.description` property to be `undefined`. This
* is for convenience, allowing you to avoid post-generation data manipulation or
* consumption contortions.
* @default true
*/
GraphQLDocs?: boolean
}
Expand Down