Answer the question
In order to leave comments, you need to log in
How to configure GraphQLBundle to pass an array of objects to input args?
I have these configs:
Mutation:
type: object
config:
fields:
CreateUserReportConfiguration:
type: CreateUserReportConfigurationPayload!
resolve: "@=mutation('create_user_report_configuration', [args['input']])"
args:
input:
type: CreateUserReportConfigurationInput!
CreateUserReportConfigurationPayload:
type: object
config:
fields:
id:
type: "Int"
user_id:
type: "Int"
fields:
type: "[ColumnReport]"
CreateUserReportConfigurationInput:
type: input-object
config:
fields:
user_id:
type: "Int!"
fields:
type: "[ColumnReport]!"
ColumnReport:
type: object
config:
fields:
column_name:
type: "String"
table_name:
type: "String"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question