{"version":3,"file":"graphql.cjs","names":[],"sources":["../../../../src/rest/commands/server/graphql.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * Retrieve the GraphQL SDL for the current project.\n * @returns GraphQL SDL.\n */\nexport const readGraphqlSdl =\n\t<Schema>(scope: 'item' | 'system' = 'item'): RestCommand<string, Schema> =>\n\t() => ({\n\t\tmethod: 'GET',\n\t\tpath: scope === 'item' ? '/server/specs/graphql' : '/server/specs/graphql/system',\n\t});\n"],"mappings":"AAMA,MAAa,GACH,EAA2B,cAC7B,CACN,OAAQ,MACR,KAAM,IAAU,OAAS,wBAA0B,+BACnD"}