We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f31fd8 commit b4a6fb1Copy full SHA for b4a6fb1
1 file changed
packages/apollo-cli/src/generate.ts
@@ -47,6 +47,10 @@ export default function generate(
47
48
validateQueryDocument(schema, document);
49
50
+ if (outputPath.split('.').length <= 1 && !fs.existsSync(outputPath)) {
51
+ fs.mkdirSync(outputPath);
52
+ }
53
+
54
if (target === "swift") {
55
options.addTypename = true;
56
const context = compileToIR(schema, document, options);
0 commit comments