sdy

add subscription

...@@ -23,3 +23,12 @@ export const DELETE_CATEGORY = gql` ...@@ -23,3 +23,12 @@ export const DELETE_CATEGORY = gql`
23 deleteCategory(name: $name) 23 deleteCategory(name: $name)
24 } 24 }
25 `; 25 `;
26 +
27 +export const SUBSCRIPTION_CATEGORY = gql`
28 + subscription {
29 + subCategory {
30 + id
31 + name
32 + }
33 + }
34 +`;
......