veksen
01/25/2018, 3:41 AMmutation {
createProfile(userId: "cjcs1tv4k1ga60134mh799k7r") {
id
firstName
lastName
}
}
getting me the following error:
"Variable \"$_where\" got invalid value {\"user\":{\"id\":\"cjcs1tv4k1ga60134mh799k7r\"}}; Field \"user\" is not defined by type UserWhereInput."
the mutation itself is defined and copied like the Link/Vote from the Howtographql.com tutorials (hackernews clone):
type Mutation {
...
vote(linkId: ID!): Vote
createProfile(userId: ID!): Profile
}
I know this might not be the best place to ask about this, if so, please direct me to a better place 🙂Stef
01/25/2018, 9:33 AMStef
01/25/2018, 9:33 AMconst ADD_TO_COLOUR_REPORT_ON_USER_MUTATION = gql
mutation AddToColourReportOnUserMutation( $colourReportId: ID!, $userId: ID!) {
addToColourReportOnUser(colourReportsColourReportId: $colourReportId, userUserId: $userId) {
colourReportsColourReport {
id
}
userUser {
id
}
}
}
`Stef
01/25/2018, 9:33 AM