UNPKG

@goteborgco/open-api-js-client

Version:

Official JavaScript client for the Göteborg & Co GraphQL API

10 lines (9 loc) 362 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.gql = void 0; /** * Simple template literal tag function for GraphQL queries * Allows for cleaner GraphQL query syntax with template literals */ const gql = (strings, ...values) => strings.reduce((result, str, i) => result + str + (values[i] || ''), ''); exports.gql = gql;