Skip to content

Allow arrays to be specified for fields in graphql_query_for

Brett Walker requested to merge bw-query_graphql_field-enhancement into master

What does this MR do?

Normally would you have to call

graphql_query_for('project', { 'fullPath' => project.full_path }, "id\nname\ndescription")

now you can do

graphql_query_for('project', { 'fullPath' => project.full_path }, %w(id name description))

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • ~~[ ] Label as security and @ mention @gitlab-com/gl-security/appsec~~
  • [ ] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [ ] Security reports checked/validated by a reviewer from the AppSec team

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60238

Edited by Brett Walker

Merge request reports