|
- import apollo from "../../lib/apollo.js";
-
- async function subscribe(email,token="") {
- var res = await apollo.mutation(
- `
- mutation($input: SubscriptionInput!){
- createSubscription(input:{data:$input}){
- subscription{
- email
- }
- }
- }
- `,
- token,
- {
- input: {
- email:email
- },
- }
- );
- return res;
- }
-
-
- module.exports = {subscribe};
|