Hello Sebastian,
I am having trouble doing a mutation for this type of schema
mutation {
createUserUsedProductsContent(
data: {email: {iv: "rahiyansafin@gmail.com"}, items: {iv: [{productId: 123}, {productId: 123}]}}
publish: true
) {
id
flatData {
email
items {
productId
}
}
}
}
it’s working fine when i am doing it through squidex graphql manually.
but having issue in code.
if i show you a picture of the query i wrote you’ll understand
and then i am having
error - Error: Variable ‘items’ cannot be non-input type ‘ProductInput’.
Unknown type ProductInput. Did you mean ‘ProductType’, ‘Product’, ‘ProductDataDto’, ‘ProductRating’, or ‘ProductFeature’?
Variable ‘$items’ is invalid. Variable has unknown type ‘ProductInput’
this error.
could you help me correcting my query please?