UNPKG

767 BSource Map (JSON)View Raw
1{"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAsC;AACtC,mDAA8D;AAE9D,SAAsB,aAAa,CAAC,OAAe;;;;;wBAC/B,qBAAM,+BAAY,CAAC,OAAO,CAAC,EAAA;;oBAAvC,SAAS,GAAG,SAA2B;oBAE7C,sBAAO,SAAS,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,IAAI,gBAAM,CAAC,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,EAA5C,CAA4C,CAAC,EAAC;;;;CAC3E;AAJD,sCAIC","sourcesContent":["import {Source, print} from 'graphql';\nimport {loadDocuments as useDocuments} from 'graphql-toolkit';\n\nexport async function loadDocuments(pointer: string): Promise<Source[]> {\n const documents = await useDocuments(pointer);\n\n return documents.map(doc => new Source(print(doc.content), doc.filePath));\n}\n"]}
\No newline at end of file