File tree Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Expand file tree Collapse file tree 1 file changed +24
-24
lines changed Original file line number Diff line number Diff 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\E ntity\P ost # targeting the class
519- args:
520- title:
521- type: String!
522- validation:
523- link: App\E ntity\P ost::title # property and getters
524- text:
525- type: String!
526- validation:
527- link: App\E ntity\P ost::$text # only property
515+ type: Post
516+ resolve: "@=mutation('edit_post', [args])"
517+ validation:
518+ link: App\E ntity\P ost # targeting the class
519+ args:
520+ title:
521+ type: String!
522+ validation:
523+ link: App\E ntity\P ost::title # property and getters
524+ text:
525+ type: String!
526+ validation:
527+ link: App\E ntity\P ost::$text # only property
528528` ` `
529529or 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
612612AddressInput:
613613 type: input-object
You can’t perform that action at this time.
0 commit comments