windows 10
- Strapi 4.4:
- Operating System: windows 10 64bit
- sql:
- Node Version: v16.20.0
- NPM Version: 8.19.4
- Yarn Version: 1.22.19
I am attempting to obtain two different responses for subscribed and non-subscribed users using Strapi and GraphQL. Does anyone know how I can achieve this?
im expecting output like this:
user:{
name:Ananthu
email:123@gmail.com
subscribed:true // default it is always false it only become if user subscribed
}
if user subscribed
response:{
data:helllo
amount:1000
name:Ananthu
}
else response:{
name:Ananthu
}
i need done this in graphql level with strapi how can i achieve this