Gorodov Maksim
06/30/2018, 8:59 AMinput ActionMemberInput {
personId: ID!
side: String!
}
createAction(
title: String!
date: String!
description: String
karma: String!
executors: String!
members: [ActionMemberInput!]!
): Action!
That's schema from frontend:
export const CREATE_ACTION = gql`
mutation createAction(
$title: String!,
$date: String!,
$description: String!,
$karma: String!,
$executors: String!,
$members: [ActionMembersInput!]!,
) {
createAction(
title: $title,
date: $date,
description: $description,
karma: $karma,
executors: $executors,
members: $members,
) {
id
title
date
description
karma
executors
members {
person {
id
name
}
side
}
}
}
`;
When I'm trying to make such mutation from frontend, I get error 404. I guess the problem somewhere there - $members: [ActionMembersInput!]!,
(frontend schema)
I tried to make same mutation from frontend and from playground and it worked in playground but didn't work in frontend