Skip to content

Commit

Permalink
abcdefg ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Devorein authored Jul 18, 2020
1 parent 8b1bedf commit 6a74716
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ Precedence of same config option is global < Schema < field. That is for the sam

| Name | Description | Type | Default Value | Usage | Available in |
|---|---|---|---|---|---|
| output | output related configuration | `boolean or Object` | false | `{output: false}` `{output: { dir: process.cwd()}}` | Schema |
| output | output related configuration | `boolean \| Object` | false | `{output: false}` `{output: { dir: process.cwd()}}` | Schema |
| &.dir | Output directory | `string` | `process.cwd()+"\SDL"` | `{output: { dir: process.cwd()}}` | Schema |
| generate | Controls generation of type, query and mutations typedefs and resolvers | `Object` or `boolean` | `true` | `generate: true` | Schema |
| &.mutation | Controls generation of mutations typedefs and resolvers | `Object` or `boolean` | `true` | `generate :{mutation: true}` | Schema |
| &.(create\|update\|delete) | Controls generation of mutations typedefs and resolvers parts , if using tuple first one indicates single resource mutation, and second indicates multi resource mutation. | `[boolean,boolean] or boolean` | `true` | `generate :{mutation: {create: false, update: [true,false]}}` here no create relation mutation will be create, only single resource update resolver and typedef will be created and both single and multi resource will be created for delete | Schema |
| generate | Controls generation of type, query and mutations typedefs and resolvers | `Object` \| `boolean` | `true` | `generate: true` | Schema |
| &.mutation | Controls generation of mutations typedefs and resolvers | `Object` \| `boolean` | `true` | `generate :{mutation: true}` | Schema |
| &.(create\|update\|delete) | Controls generation of mutations typedefs and resolvers parts , if using tuple first one indicates single resource mutation, and second indicates multi resource mutation. | `[boolean,boolean] \| boolean` | `true` | `generate :{mutation: {create: false, update: [true,false]}}` here no create relation mutation will be create, only single resource update resolver and typedef will be created and both single and multi resource will be created for delete | Schema |
| Schemas | Array of schemas generate by mongoose | `Schema[]` | `[]` | `Schemas: [UserSchema, ...]` | |
| Typedefs | Typedefs related configuration | `Object` | `{init: undefined}` | `Typedefs: {init: {User: InitialUserTypedef}}` | |
| &.init | Initial typedefs to be attached to resultant typedef | `Object` | `undefined` | `init: {User: InitialUserTypedef}` | |
Expand All @@ -187,7 +187,7 @@ Precedence of same config option is global < Schema < field. That is for the sam
|---|---|---|---|---|---|
| resource | name of the resource | `string` | **Required** | `resource: User` | |
| global_excludePartitions | Controls which auth partition will be excluded in the generated schemas | `Object` | `{base: [], extra: ['Others', 'Mixed']}` | `global_excludePartitions: {base: [ 'Others', 'Mixed' ]}` | |
| &.(base\|extra) | Controls which auth partition will be excluded in the types of generated schemas | `[] | boolean` | `{base: [], extra: ['Others', 'Mixed']}` | `global_excludePartitions: {base: [ 'Others', 'Mixed' ],extra: ['Self']}` | |
| &.(base\|extra) | Controls which auth partition will be excluded in the types of generated schemas | `[] \| boolean` | `{base: [], extra: ['Others', 'Mixed']}` | `global_excludePartitions: {base: [ 'Others', 'Mixed' ],extra: ['Self']}` | |
| generateInterface | Controls whether or not to generate interface from base resource | `boolean` | `true` | `generateInterface: true` | |

### Field configs
Expand Down

0 comments on commit 6a74716

Please sign in to comment.