Skip to content

Commit 12ee906

Browse files
committed
Fix indentation issues
1 parent e92cd4c commit 12ee906

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/validation/index.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -512,19 +512,19 @@ Mutation:
512512
config:
513513
fields:
514514
editPost:
515-
type: Post
516-
resolve: "@=mutation('edit_post', [args])"
517-
validation:
518-
link: App\Entity\Post # targeting the class
519-
args:
520-
title:
521-
type: String!
522-
validation:
523-
link: App\Entity\Post::title # property and getters
524-
text:
525-
type: String!
526-
validation:
527-
link: App\Entity\Post::$text # only property
515+
type: Post
516+
resolve: "@=mutation('edit_post', [args])"
517+
validation:
518+
link: App\Entity\Post # targeting the class
519+
args:
520+
title:
521+
type: String!
522+
validation:
523+
link: App\Entity\Post::title # property and getters
524+
text:
525+
type: String!
526+
validation:
527+
link: App\Entity\Post::$text # only property
528528
```
529529
or use the short form (omitting the `link` key), which is equal to the config above:
530530
```yaml
@@ -597,17 +597,17 @@ Mutation:
597597
config:
598598
fields:
599599
updateUser:
600-
type: Post
601-
resolve: "@=mutation('update_user', [args])"
602-
args:
603-
id:
604-
type: ID!
605-
address:
606-
type: AddressInput
607-
validation: cascade # delegate to AddressInput
608-
workPeriod:
609-
type: PeriodInput
610-
validation: cascade # delegate to PeriodInput
600+
type: Post
601+
resolve: "@=mutation('update_user', [args])"
602+
args:
603+
id:
604+
type: ID!
605+
address:
606+
type: AddressInput
607+
validation: cascade # delegate to AddressInput
608+
workPeriod:
609+
type: PeriodInput
610+
validation: cascade # delegate to PeriodInput
611611
612612
AddressInput:
613613
type: input-object

0 commit comments

Comments
 (0)