Hi, I created a GraphQL page and added the code below to fetch deals amount by deal stage. I want the deal stage to be dynamic and managed through a module, but I’m unable to get it working. Could anyone help?”
# $dealstage: "{{ module.stage }}"
query MyQuery {
CRM {
deal_collection(
filter: {distributor_customer_number__eq: "105253227879", dealstage__eq: $dealstage}
) {
items {
amount
dealstage
}
}
}
}