@theguild/federation-composition
Version:
Open Source Composition library for Apollo Federation
17 lines (15 loc) • 470 B
JavaScript
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;
;