Actions
Bug #32177
closedResult key for saved object should not be camel case
Description
Steps to reproduce:
1) Have a mutation with a result field that has underscore in a field name
module Mutations module MyModel class Create < CreateMutation # description, graphql_name, resource_class, argument methods omited # make sure result field has more than 1 word, reproducible with :my_model, not reproducible with :mymodel field :my_model, Types::MyModel, 'The newly created MyModel', null: true end end end
2) Execute mutation, query for the new record attributes in response
mutation MyModel($name: String!) { myModel(input: {name: $name}) { myModel { name } errors { path message } } }
3) Response will show null even though the record was created
{ "data": { "createMyModel": { "myModel": null "errors": [] } } }
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8410 added
Updated by Tomer Brisker over 3 years ago
- Category set to API
- Fixed in Releases deleted (
2.5.0)
Updated by Ondřej Pražák over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|3d90a2ca99c1f71593b5db48951b9be187242c38.
Actions