UNPKG

@theguild/federation-composition

Version:
17 lines (15 loc) 470 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sdl = void 0; const sdl = (names) => ` directive @${names.cost}( weight: Int! ) on ARGUMENT_DEFINITION | ENUM | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | OBJECT | SCALAR directive @${names.listSize}( assumedSize: Int slicingArguments: [String!] sizedFields: [String!] requireOneSlicingArgument: Boolean = true ) on FIELD_DEFINITION `; exports.sdl = sdl;