free and simple tools for calculators, generators and convertor

A2Z tools provide accessible and user-friendly tools. Our tools consist of an age calculator, loan https://a2z.tools/ .EMI calculator, bar generator, XML sitemap generator, BMI calculator, HTML editor, XML, URL shortener, CSS minifier, address by lat-long, IP finder, image to base64, internet speed test, broken line checker, backlink generator, javascript minifier, keyword rank checker tool, various converters, and many tools.

These tools are developed by our professional developers and are used by millions. These tools have become successful for IT professionals, digital marketing, designers, bloggers, web developers

Unable to access the key from proxy object – javascript

When I console the object, it’s printed as Proxy. It has nested objects and strings. I’m able to access all of the keys (exept one) using dot operator and they are printed in console when I do JSON.parse(JSON.stringify(proxy_object_example)). The one of the keys whose value is object becomes undefined when i try to access using dot operator. Still, Im able to see that object in console within Target of Proxy object. I tried _.cloneDeep but no luck.

Note: This is happening in project based on vue3 version but not sure which is what creating the problem.

How do I use Cypress Origin with google accounts?

I am attempting to access a google service embedded into my website which uses accounts.google.com for the login.

I’m trying to use the session/origin commands to do this, but it’s failing as if I’m doing nothing at all. I use this with success to login to my application (non google login), but google seems to require something more. I have spent a great deal of time browsing for answers with no luck

Code leading up to login:

cy.get('div [class="active carousel-item"]').find('button').first().click()
cy.loginGoogle(Cypress.env("GoogleUsername"),Cypress.env("GooglePassword"))

Login code:

Cypress.Commands.add('loginGoogle', (username, password) => {
const args = { username, password }

cy.session(args, () =>

{
 cy.origin('https://accounts.google.com', { args }, ({ username, password }) => {
  cy.visit('https://accounts.google.com/')
  cy.get('input[type="email"]').type(username)
  cy.get('div[id="identifierNext"]').find('button').click()
  cy.get('#login-password').type(password)
  cy.get('#btn-login').click()
})
cy.visit('/')
cy.url().should('contain', 'mydomain.com')
})
})

Code works on Development Environment Codeigniter but not on Production

Hello I’m coding using codeigniter but the problem it shows on “Development” Environment but when it comes to “Production” Its not working on this case I can’t see errors on my logs if I’m on Production State.

Under Development: When Adding a items and click the “check icon” my data goes down with and my input type [brand] has value which is Pipoy and Test like on the screenshot below.

Development

but when it comes on Production: When adding items my input type brand is missing. Please check the screenshot Below

Production

Heres my code below:

Main.js

function add_item_to_table(data, itemid, merge_invoice, bill_expense) {

    // If not custom data passed get from the preview
    data = typeof (data) == 'undefined' || data == 'undefined' ? get_item_preview_values() : data;
    if (data.description === "" && data.long_description === "" && data.rate === "") {
        return;
    }

    var table_row = '';
    var item_key = lastAddedItemKey ? lastAddedItemKey += 1 : $("body").find('tbody .item').length + 1;
    lastAddedItemKey = item_key;

    table_row += '<tr class="sortable item" data-merge-invoice="' + merge_invoice + '" data-bill-expense="' + bill_expense + '">';

    table_row += '<td class="dragger">';

    // Check if quantity is number
    if (isNaN(data.qty)) {
        data.qty = 1;
    }

    // Check if rate is number
    if (data.rate === '' || isNaN(data.rate)) {
        data.rate = 0;
    }

    var amount = data.rate * data.qty;

    var tax_name = 'newitems[' + item_key + '][taxname][]';
    $("body").append('<div class="dt-loader"></div>');
    var regex = /<br[^>]*>/gi;
    get_taxes_dropdown_template(tax_name, data.taxname).done(function (tax_dropdown) {

        // order input
        table_row += '<input type="hidden" class="order" name="newitems[' + item_key + '][order]">';

        table_row += '</td>';

        table_row += '<td class="bold description"><textarea name="newitems[' + item_key + '][description]" class="form-control" rows="5">' + data.description + '</textarea></td>';

        table_row += '<td><textarea name="newitems[' + item_key + '][long_description]" class="form-control item_long_description" rows="5">' + data.long_description.replace(regex, "n") + '</textarea></td>';
//
        table_row += '<td class="brand"><input type="text" class="brand" name="newitems[' + item_key + '][brand]" value="' + data.brand + '" class="form-control"></td>';

        var custom_fields = $('tr.main td.custom_field');
        var cf_has_required = false;

        if (custom_fields.length > 0) {

            $.each(custom_fields, function () {

                var cf = $(this).clone();
                var cf_html = '';
                var cf_field = $(this).find('[data-fieldid]');
                var cf_name = 'newitems[' + item_key + '][custom_fields][items][' + cf_field.attr('data-fieldid') + ']';

                if (cf_field.is(':checkbox')) {

                    var checked = $(this).find('input[type="checkbox"]:checked');
                    var checkboxes = cf.find('input[type="checkbox"]');

                    $.each(checkboxes, function (i, e) {
                        var random_key = Math.random().toString(20).slice(2);
                        $(this).attr('id', random_key)
                            .attr('name', cf_name)
                            .next('label').attr('for', random_key);
                        if ($(this).attr('data-custom-field-required') == '1') {
                            cf_has_required = true;
                        }
                    });

                    $.each(checked, function (i, e) {
                        cf.find('input[value="' + $(e).val() + '"]')
                            .attr('checked', true);
                    });

                    cf_html = cf.html();

                } else if (cf_field.is('input') || cf_field.is('textarea')) {
                    if (cf_field.is('input')) {
                        cf.find('[data-fieldid]').attr('value', cf_field.val());
                    } else {
                        cf.find('[data-fieldid]').html(cf_field.val());
                    }
                    cf.find('[data-fieldid]').attr('name', cf_name);
                    if (cf.find('[data-fieldid]').attr('data-custom-field-required') == '1') {
                        cf_has_required = true;
                    }
                    cf_html = cf.html();
                } else if (cf_field.is('select')) {

                    if ($(this).attr('data-custom-field-required') == '1') {
                        cf_has_required = true;
                    }

                    var selected = $(this).find('select[data-fieldid]').selectpicker('val');
                    selected = typeof (selected != 'array') ? new Array(selected) : selected;

                    // Check if is multidimensional by multi-select customfield
                    selected = selected[0].constructor === Array ? selected[0] : selected;

                    var selectNow = cf.find('select');
                    var $wrapper = $('<div/>');
                    selectNow.attr('name', cf_name);

                    var $select = selectNow.clone();
                    $wrapper.append($select);
                    $.each(selected, function (i, e) {
                        $wrapper.find('select option[value="' + e + '"]').attr('selected', true);
                    });

                    cf_html = $wrapper.html();
                }
                table_row += '<td class="custom_field">' + cf_html + '</td>';
            });
        }

        table_row += '<td><input type="number" min="0" onblur="calculate_total();" onchange="calculate_total();" data-quantity name="newitems[' + item_key + '][qty]" value="' + data.qty + '" class="form-control">';

        if (!data.unit || typeof (data.unit) == 'undefined') {
            data.unit = '';
        }

        table_row += '<input type="text" placeholder="' + app.lang.unit + '" name="newitems[' + item_key + '][unit]" class="form-control input-transparent text-right" value="' + data.unit + '">';

        table_row += '</td>';

        table_row += '<td class="rate"><input type="number" data-toggle="tooltip" title="' + app.lang.item_field_not_formatted + '" onblur="calculate_total();" onchange="calculate_total();" name="newitems[' + item_key + '][rate]" value="' + data.rate + '" class="form-control"></td>';

        table_row += '<td class="taxrate">' + tax_dropdown + '</td>';

        table_row += '<td class="amount" align="right">' + format_money(amount, true) + '</td>';

        table_row += '<td><a href="#" class="btn btn-danger pull-left" onclick="delete_item(this,' + itemid + '); return false;"><i class="fa fa-trash"></i></a></td>';

        table_row += '</tr>';

        $('table.items tbody').append(table_row);

        $(document).trigger({
            type: "item-added-to-table",
            data: data,
            row: table_row
        });

        setTimeout(function () {
            calculate_total();
        }, 15);

        var billed_task = $('input[name="task_id"]').val();
        var billed_expense = $('input[name="expense_id"]').val();

        if (billed_task !== '' && typeof (billed_task) != 'undefined') {
            billed_tasks = billed_task.split(',');
            $.each(billed_tasks, function (i, obj) {
                $('#billed-tasks').append(hidden_input('billed_tasks[' + item_key + '][]', obj));
            });
        }

        if (billed_expense !== '' && typeof (billed_expense) != 'undefined') {
            billed_expenses = billed_expense.split(',');
            $.each(billed_expenses, function (i, obj) {
                $('#billed-expenses').append(hidden_input('billed_expenses[' + item_key + '][]', obj));
            });
        }

        if ($('#item_select').hasClass('ajax-search') && $('#item_select').selectpicker('val') !== '') {
            $('#item_select').prepend('<option></option>');
        }

        init_selectpicker();
        init_datepicker();
        init_color_pickers();
        clear_item_preview_values();
        reorder_items();

        $('body').find('#items-warning').remove();
        $("body").find('.dt-loader').remove();
        $('#item_select').selectpicker('val', '');

        if (cf_has_required && $('.invoice-form').length) {
            validate_invoice_form();
        } else if (cf_has_required && $('.estimate-form').length) {
            validate_estimate_form();
        } else if (cf_has_required && $('.proposal-form').length) {
            validate_proposal_form();
        } else if (cf_has_required && $('.credit-note-form').length) {
            validate_credit_note_form();
        }

        if (bill_expense == 'undefined' || !bill_expense) {
            $('select[name="task_select"]').find('[value="' + billed_task + '"]').remove();
            $('select[name="task_select"]').selectpicker('refresh');
        }
        return true;

    });

    return false;
}

Main.min.js

Function add_item_to_table(n, s, e, o) {
    if ("" !== (n = void 0 === n || "undefined" == n ? get_item_preview_values() : n).description || "" !== n.long_description || "" !== n.rate) {
        var p = "",
            _ = lastAddedItemKey ? (lastAddedItemKey += 1) : $("body").find("tbody .item").length + 1;
        (lastAddedItemKey = _), (p += '<tr class="sortable item" data-merge-invoice="' + e + '" data-bill-expense="' + o + '">'), (p += '<td class="dragger">'), isNaN(n.qty) && (n.qty = 1), ("" === n.rate || isNaN(n.rate)) && (n.rate = 0);
        var l = n.rate * n.qty,
            t = "newitems[" + _ + "][taxname][]";
        $("body").append('<div class="dt-loader"></div>');
        var d = /<br[^>]*>/gi;
        return (
            get_taxes_dropdown_template(t, n.taxname).done(function (e) {
                (p += '<input type="hidden" class="order" name="newitems[' + _ + '][order]">'),
                    (p += "</td>"),
                    (p += '<td class="bold description"><textarea name="newitems[' + _ + '][description]" class="form-control" rows="5">' + n.description + "</textarea></td>"),
                    (p += '<td><textarea name="newitems[' + _ + '][long_description]" class="form-control item_long_description" rows="5">' + n.long_description.replace(d, "n") + "</textarea></td>");
                var t = $("tr.main td.custom_field"),
                    c = !1;
                0 < t.length &&
                    $.each(t, function () {
                        var a = $(this).clone(),
                            e = "",
                            t = $(this).find("[data-fieldid]"),
                            i = "newitems[" + _ + "][custom_fields][items][" + t.attr("data-fieldid") + "]";
                        if (t.is(":checkbox")) {
                            var n = $(this).find('input[type="checkbox"]:checked'),
                                s = a.find('input[type="checkbox"]');
                            $.each(s, function (e, t) {
                                var a = Math.random().toString(20).slice(2);
                                $(this).attr("id", a).attr("name", i).next("label").attr("for", a), "1" == $(this).attr("data-custom-field-required") && (c = !0);
                            }),
                                $.each(n, function (e, t) {
                                    a.find('input[value="' + $(t).val() + '"]').attr("checked", !0);
                                }),
                                (e = a.html());
                        } else if (t.is("input") || t.is("textarea"))
                            t.is("input") ? a.find("[data-fieldid]").attr("value", t.val()) : a.find("[data-fieldid]").html(t.val()),
                                a.find("[data-fieldid]").attr("name", i),
                                "1" == a.find("[data-fieldid]").attr("data-custom-field-required") && (c = !0),
                                (e = a.html());
                        else if (t.is("select")) {
                            "1" == $(this).attr("data-custom-field-required") && (c = !0);
                            var o = $(this).find("select[data-fieldid]").selectpicker("val");
                            o = (o = new Array(o))[0].constructor === Array ? o[0] : o;
                            var l = a.find("select"),
                                d = $("<div/>");
                            l.attr("name", i);
                            var r = l.clone();
                            d.append(r),
                                $.each(o, function (e, t) {
                                    d.find('select option[value="' + t + '"]').attr("selected", !0);
                                }),
                                (e = d.html());
                        }
                        p += '<td class="custom_field">' + e + "</td>";
                    }),
                    (p += '<td><input type="text" class="brand" name="newitems[' + _ + '][brand]" value="' + n.brand + '" class="form-control"></td>'),
                    (p += '<td><input type="number" min="0" onblur="calculate_total();" onchange="calculate_total();" data-quantity name="newitems[' + _ + '][qty]" value="' + n.qty + '" class="form-control">'),
                    (n.unit && void 0 !== n.unit) || (n.unit = ""),
                    (p += '<input type="text" placeholder="' + app.lang.unit + '" name="newitems[' + _ + '][unit]" class="form-control input-transparent text-right" value="' + n.unit + '">'),
                    (p += "</td>"),
                    (p +=
                        '<td class="rate"><input type="number" data-toggle="tooltip" title="' +
                        app.lang.item_field_not_formatted +
                        '" onblur="calculate_total();" onchange="calculate_total();" name="newitems[' +
                        _ +
                        '][rate]" value="' +
                        n.rate +
                        '" class="form-control"></td>'),
                    (p += '<td class="taxrate">' + e + "</td>"),
                    (p += '<td class="amount" align="right">' + format_money(l, !0) + "</td>"),
                    (p += '<td><a href="#" class="btn btn-danger pull-left" onclick="delete_item(this,' + s + '); return false;"><i class="fa fa-trash"></i></a></td>'),
                    (p += "</tr>"),
                    $("table.items tbody").append(p),
                    $(document).trigger({ type: "item-added-to-table", data: n, row: p }),
                    setTimeout(function () {
                        calculate_total();
                    }, 15);
                var a = $('input[name="task_id"]').val(),
                    i = $('input[name="expense_id"]').val();
                return (
                    "" !== a &&
                        void 0 !== a &&
                        ((billed_tasks = a.split(",")),
                        $.each(billed_tasks, function (e, t) {
                            $("#billed-tasks").append(hidden_input("billed_tasks[" + _ + "][]", t));
                        })),
                    "" !== i &&
                        void 0 !== i &&
                        ((billed_expenses = i.split(",")),
                        $.each(billed_expenses, function (e, t) {
                            $("#billed-expenses").append(hidden_input("billed_expenses[" + _ + "][]", t));
                        })),
                    $("#item_select").hasClass("ajax-search") && "" !== $("#item_select").selectpicker("val") && $("#item_select").prepend("<option></option>"),
                    init_selectpicker(),
                    init_datepicker(),
                    init_color_pickers(),
                    clear_item_preview_values(),
                    reorder_items(),
                    $("body").find("#items-warning").remove(),
                    $("body").find(".dt-loader").remove(),
                    $("#item_select").selectpicker("val", ""),
                    c && $(".invoice-form").length
                        ? validate_invoice_form()
                        : c && $(".estimate-form").length
                        ? validate_estimate_form()
                        : c && $(".proposal-form").length
                        ? validate_proposal_form()
                        : c && $(".credit-note-form").length && validate_credit_note_form(),
                    ("undefined" != o && o) ||
                        ($('select[name="task_select"]')
                            .find('[value="' + a + '"]')
                            .remove(),
                        $('select[name="task_select"]').selectpicker("refresh")),
                    !0
                );
            }),
            !1
        );
    }
}

get a data-attribute (data-phone) value from the selected datalist option

how to get a data-attribute (like:- data-phone ) value from the selected datalist option which is selected;
It send me just value not data attribute.

i want to set data-phone of input from data-phone of datalist > option

How can I set this? Help

Html:

     <input type="text" name="patirnt_name" id="patirnt_name" list="patient_list" onfocus="getAllPatients()" value="" data-phone="">
         <datalist id="patient_list">

         </datalist>

JQuery:

function getAllPatients() {
            let url = "{{ route('get-all-patient-ajax') }}";
            let list = $('#patient_list');

            let html = '';
            $.ajax({
                url: url,
                type: "GET",
                success: function(res) {
                    let data = res.patients;

                    $.each(data, function(index, value) {
                        html +=
                            `<option value="${value.F_name}" data-phone="${value.phone}" >${value.F_name}</option >`;
                    });

                    list.html(html);

                },
                error: function(error) {
                    console.log(error);
                }
            })
        }

Can anyone tell me why email is not being sent using Emailjs?

Here is my page that is linked to my site, I got no errors and the form resets after hitting send, however no email is ever sent. No errors are shown

import React, { useRef } from 'react';
import emailjs from '@emailjs/browser';


const EmailPage = () => {
    const form = useRef();

    const sendEmail = (e) => {
    e.preventDefault();

    emailjs.sendForm('[email protected]', 'template_ecy2uwb', form.current, 'vv8p2wcJmKmmI0vJ0')
      .then((result) => {
          console.log(result.text);
      }, (error) => {
          console.log(error.text);
      });
      e.target.reset()
  };

  return (
    <form ref={form} onSubmit={sendEmail}>
      <label>Subject</label>
      <input type="subject" name="subject" />
      <label>Name</label>
      <input type="name" name="user_name" />
      <label>Email</label>
      <input type="email" name="user_email" />
      
      <label>Message</label>
      <textarea name="message" />
      <input type="submit" value="Send" />
    </form>
  );
};
    

export default EmailPage;

How to make a robot to roam around?

Can someone give me an example of a robot who can roam around at the event/altspace and has certain stops (or a time out)?

I downloaded a robot from sketchfab and I need atleast make it move or the robot can roam around.
I hope someone can help me. Thank you in advance!

Can someone explain pls why the Promise returns pending in the first function, but resolved in the other two?

Can someone explain pls why the Promise returns pending in the first function, but resolved in the other two? When i read MDN it states that just using the word async wont make the code inside asynchronous (we need to use the word await as well). Also, I return the promise explicitly, since I use resolve() (which should return fulfilled promise as in two other functions, yet it returns Pending in the first function). I provided the code below.

const testFunc = async() => {
  return new Promise((resolve,reject)=> {
    resolve()
  })
}

const testFunc2 = () => {
  return new Promise((resolve,reject)=> {
    resolve()
  })
}

const testFunc3 = () => {
  return new Promise((resolve,reject)=> {
    resolve()
  })
}

testFunc().then(()=> console.log("Hello")).then(()=> console.log("there")).then(()=> console.log("Obi One"))

testFunc2().then(()=> console.log(1)).then(()=> console.log(2)).then(()=> console.log(3))

testFunc3().then(()=> console.log(4)).then(()=> console.log(5)).then(()=> console.log(6))

console.log(testFunc())
console.log(testFunc2())
console.log(testFunc3())

Results in the console: 
Promise {<pending>}
Promise {<fulfilled>: undefined}
Promise {<fulfilled>: undefined}
 1
 4
 2
 5
 Hello
 3
 6
there

Obi One
undefined

display title in each day in fullcalander.io

i am trying to dispaly booked hotel room number in a calander. in date range the room number displayed in first date only. i need to dispaly the title(room_number) in every day it books.

enter code here $(document).ready(function(){
    var booking_details  = @json($booking_details);

    // console.log(booking_details);

    $("#calander").fullCalendar({
   
   
    events: booking_details,
    eventColor: '#FF0000'
    

    }); 
    
     

});

i got data by json

enter code here
    $booking_details = array();
    $bookings = Booking::all();
   
    
    foreach($bookings as $booking){

       $booking_details[]=[

       'title'=>$booking->room_number,
       'start'=>$booking->checkin_date,
       'end'=>$booking->checkout_date
       

       ];

    }

Calling get api before post is not happening in synchronous way in angular

In my service, I am doing a post-service call to get some data but before calling the POST API I am doing a GET call to get auth token which I will use in the post-call. Now I have used async-await to wait until GET API returns the token and then does POST but it is not happening that way. Till the time token comes, the post-call is already completed. I want to call them in a synchronous manner that is first GET the token and then does the POST

My component abc.ts

  async ngOnInit(): Promise<void> {
    (await this.abcservice.fetchDetails(this.id, this.name))
      .subscribe(
        (data: any) => {
          this.result = data.value;
        },
        (error) => {
          this.ErrorHandler(error);
        }
      );
  }

In my service abc-service.ts

  async getToken() {
    this.tokenService.getToken().subscribe(resp => {
      if (resp.headers) {
        this.headerDict = {
          'x-token': resp.headers.get('x-token')
        };
        this.requestOptions = {
          headers: new HttpHeaders(this.headerDict)
        };
      }
    });
  }


  public async fetchDetails(payload: any) {
    await this.getToken();
    return this.http.post<any>(this.url,payload, this.requestOptions);
  }

In token-service.ts

   getToken() {
    return this.httpClient.get<any>(url, { observe: 'response' });
  }

Can anyone please point out what is wrong I am doing?

How to import component during the runtime

I started using Vue JS 3 and I would like to know if I can and its possible to import component ( modals ) during the runtime I tried that but didn’t work

watch:{
        modal:{
            handler(newModal){
                App.component('modal', () => import(newModal))
            }
        }
    },

AppScript Slides Get Hex Code of Text Box

For Apps Script, I’m trying to print the Hex code of the fill of text box.
Any ideas. I’m stuck once I get to .getSolidFill().


      let deck = SlidesApp.openById(masterDeckID);
      let slides = deck.getSlides();

      let masterSlide = slides[1];
      let slide = masterSlide.duplicate();
      slide.getShapes().forEach(shape => {
         if (shape.getFill().getSolidFill()!== null)
            console.log("Color String: " +shape.getFill().getSolidFill());

Problem with server.applyMiddleware({app}) function does not accept any arguments

What I’m trying to do is a subscription with typeScript and apolloserver. I have seen many tutorials and most of them do it this way and it works for them. a a

import { ApolloServer } from "apollo-server";
import { connectDB } from "./mongodb";
import { typeDefs } from "./schema";
import Query from "./resolvers/Query";
import Mutation from "./resolvers/mutation";
import dotenv from "dotenv";
//dotenv.config()
import { createServer } from "http";
import { ApolloServerPluginDrainHttpServer } from "apollo-server-core";
import { makeExecutableSchema } from "@graphql-tools/schema";
import { WebSocketServer } from "ws";
import { useServer } from "graphql-ws/lib/use/ws";
import express from "express";
import { SubscriptionServer } from "subscriptions-transport-ws";
import { PubSub } from 'graphql-subscriptions';
import { execute,subscribe } from "graphql";
const run = async () => {
  dotenv.config();
  const pubsub = new PubSub();
  const db = await connectDB();
  const port = process.env.PORT;

const app = express();
const httpServer=createServer(app)
const schema = makeExecutableSchema({
    typeDefs,
    resolvers: {
        Query,
        Mutation,
    },
    });

/*  
  const wsServer = new WebSocketServer({

    server: httpServer,
 
    path: "/graphql",
  });

  const serverCleanup = useServer({ schema }, wsServer);
   */

  const server = new ApolloServer({
    schema,
    typeDefs,
    context: ({ req, res }) => ({ req, res, pubsub }),
    plugins: [ApolloServerPluginDrainHttpServer({ httpServer }), {
        async serverWillStart() {
            return {
                async drainServer() {
                    subscriptionServer.close();
                }
            };
        }
    }],
    });
    const subscriptionServer = SubscriptionServer.create({
    
        schema,
      
        execute,
        subscribe,
        
        async onConnect(
            connectionParams:any,
            webSocket:any,
            context:any
        ){
            console.log('Connected!');  
            return {pubsub}    
        },
        onDisconnect() {
            console.log('Disconnected!')
        }
    }, {
        // This is the `httpServer` we created in a previous step.
        server: httpServer,
        // This `server` is the instance returned from `new ApolloServer`.
        path: server.graphqlPath,
    });




  /* server.listen(port).then((url) => {
    console.log("Server escuchando en el puerto 2000");
  }); */
  await server.start();

  server.applyMiddleware({app}) //Error 
  
    httpServer.listen(port, () => {
    console.log(
      `Server is now running on http://localhost:${port}${server.graphqlPath}`,
    );
  }); 
};
try {
  run();
} catch (error) {
  console.log(error);
}

[All the information I have collected from here]https://www.apollographql.com/docs/apollo-server/data/subscriptions