"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.toGqlQuery = void 0;

const toGqlQuery = arr => "{".concat(arr.reduce((result, item, index) => result + (index === 0 ? '' : ' ') + (Array.isArray(item) ? "".concat(item[0], " ").concat(toGqlQuery(item.slice(1))) : item), ''), "}");

exports.toGqlQuery = toGqlQuery;