diff --git a/src/Resources/config/expression_language_functions.yaml b/src/Resources/config/expression_language_functions.yaml index 2467c96bb..f80c14017 100644 --- a/src/Resources/config/expression_language_functions.yaml +++ b/src/Resources/config/expression_language_functions.yaml @@ -22,7 +22,7 @@ services: expression_function.mutation_alias: class: Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Mutation - arguments: { $name : 'mut' } + arguments: { $name : 'm' } expression_function.query_alias: class: Overblog\GraphQLBundle\ExpressionLanguage\ExpressionFunction\GraphQL\Query diff --git a/tests/Functional/App/config/cascadeOnScalars/mapping/Mutation.types.yml b/tests/Functional/App/config/cascadeOnScalars/mapping/Mutation.types.yml index d60b2364e..e37f73d43 100644 --- a/tests/Functional/App/config/cascadeOnScalars/mapping/Mutation.types.yml +++ b/tests/Functional/App/config/cascadeOnScalars/mapping/Mutation.types.yml @@ -4,7 +4,7 @@ Mutation: fields: cascadeOnScalar: type: Boolean - resolve: '@=mut("mutation_mock", [args, validator])' + resolve: '@=m("mutation_mock", args, validator)' args: test: type: "String" diff --git a/tests/Functional/App/config/nonexistentConstraint/mapping/Mutation.types.yml b/tests/Functional/App/config/nonexistentConstraint/mapping/Mutation.types.yml index e6f571890..5bab5b26f 100644 --- a/tests/Functional/App/config/nonexistentConstraint/mapping/Mutation.types.yml +++ b/tests/Functional/App/config/nonexistentConstraint/mapping/Mutation.types.yml @@ -4,7 +4,7 @@ Mutation: fields: constraintDoesNotExist: type: Boolean - resolve: '@=mut("mutation_mock", [args, validator])' + resolve: '@=m("mutation_mock", args, validator)' args: username: type: "String" diff --git a/tests/Functional/App/config/validator/mapping/Mutation.types.yml b/tests/Functional/App/config/validator/mapping/Mutation.types.yml index bff02536f..f58c053db 100644 --- a/tests/Functional/App/config/validator/mapping/Mutation.types.yml +++ b/tests/Functional/App/config/validator/mapping/Mutation.types.yml @@ -6,7 +6,7 @@ Mutation: complexity: 1 public: true type: Boolean - resolve: "@=mut('no_validation')" + resolve: "@=m('no_validation')" args: username: type: String! @@ -15,7 +15,7 @@ Mutation: simpleValidation: type: Boolean - resolve: "@=mut('mutation_mock', args, validator)" + resolve: "@=m('mutation_mock', args, validator)" args: username: type: String! @@ -27,7 +27,7 @@ Mutation: linkedConstraintsValidation: type: Boolean - resolve: "@=mut('mutation_mock', args, validator)" + resolve: "@=m('mutation_mock', args, validator)" validation: link: Overblog\GraphQLBundle\Tests\Functional\Validator\DummyEntity constraints: @@ -45,7 +45,7 @@ Mutation: collectionValidation: type: Boolean - resolve: "@=mut('mutation_mock', args, validator)" + resolve: "@=m('mutation_mock', args, validator)" args: addresses: type: "[Address]!" @@ -61,7 +61,7 @@ Mutation: cascadeValidationWithGroups: type: Boolean - resolve: '@=mut("mutation_mock", args, validator)' + resolve: '@=m("mutation_mock", args, validator)' args: groups: type: "[String]!" @@ -76,7 +76,7 @@ Mutation: userPasswordValidation: type: Boolean - resolve: '@=mut("mutation_mock", args, validator)' + resolve: '@=m("mutation_mock", args, validator)' args: oldPassword: type: "String" @@ -85,7 +85,7 @@ Mutation: expressionVariablesValidation: type: Boolean - resolve: '@=mut("mutation_mock", args, validator)' + resolve: '@=m("mutation_mock", args, validator)' args: username: type: "String" @@ -94,7 +94,7 @@ Mutation: autoValidationAutoThrow: type: Boolean - resolve: '@=mut("mutation_mock", args)' + resolve: '@=m("mutation_mock", args)' args: username: type: String! @@ -106,7 +106,7 @@ Mutation: autoValidationNoThrow: type: Boolean - resolve: '@=mut("mutation_errors", errors)' + resolve: '@=m("mutation_errors", errors)' args: username: type: String! @@ -118,7 +118,7 @@ Mutation: autoValidationAutoThrowWithGroups: type: Boolean - resolve: '@=mut("mutation_mock", args)' + resolve: '@=m("mutation_mock", args)' validationGroups: ["Default", "Address", "Period", "group1", "group2"] args: address: diff --git a/tests/Functional/App/config/validatorWithoutConstraints/mapping/Mutation.types.yml b/tests/Functional/App/config/validatorWithoutConstraints/mapping/Mutation.types.yml index dea16d205..4b23a4340 100644 --- a/tests/Functional/App/config/validatorWithoutConstraints/mapping/Mutation.types.yml +++ b/tests/Functional/App/config/validatorWithoutConstraints/mapping/Mutation.types.yml @@ -4,7 +4,7 @@ Mutation: fields: noValidationDefined: type: Boolean - resolve: '@=mut("mutation_mock", args, validator)' + resolve: '@=m("mutation_mock", args, validator)' args: username: type: "String"