UNPKG

@smartinvoicexyz/graphql

Version:

Unified source for helpers and schema used across the GraphQL services within the Smart Invoice protocol.

10 lines (9 loc) 270 B
import gql from 'graphql-tag'; import { Zeus, } from './'; export const typedGql = (operation, graphqlOptions) => (o, ops) => { const str = Zeus(operation, o, { operationOptions: ops, scalars: graphqlOptions?.scalars, }); return gql(str); };