subscription userSubscription($filter: UserSubscriptionFilter!) {
User(filter: $filter) {
mutation
node {
name
addresses {
id
pincode
}
}
}
}
in this subscription query i need to pass filter variable with value {mutation_in: [CREATED]}... However CREATED is an enum, how do i pass it as filter variable
If i hardcode oin query itself then its working .... for example below query is working
subscription userSubscription {
User(filter: {mutation_in: [CREATED] node{name contains"ankit"}}) {
mutation
node {
name
addresses {
id
pincode
}
}
}
}
i want to pas the whole filter variable dynamically using the variables field when setting up the subscription