From 6bf58e678e65b4bae6e5af0c89827a57bb4524f0 Mon Sep 17 00:00:00 2001 From: Lukas Schmierer Date: Mon, 4 Oct 2021 16:06:07 +0200 Subject: [PATCH] change import comment to be compatible with graphql-tools --- .../main/java/org/hl7/fhir/r4/utils/GraphQLSchemaGenerator.java | 2 +- .../main/java/org/hl7/fhir/r5/utils/GraphQLSchemaGenerator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/GraphQLSchemaGenerator.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/GraphQLSchemaGenerator.java index 329c35fed..ce82bd6ac 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/GraphQLSchemaGenerator.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/GraphQLSchemaGenerator.java @@ -113,7 +113,7 @@ public class GraphQLSchemaGenerator { public void generateResource(OutputStream stream, StructureDefinition sd, List parameters, EnumSet operations) throws IOException, FHIRException { BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream)); writer.write("# FHIR GraphQL Schema. Version "+Constants.VERSION+"\r\n\r\n"); - writer.write("# import the types from 'types.graphql'\r\n\r\n"); + writer.write("# import * from 'types.graphql'\r\n\r\n"); generateType(writer, sd); if (operations.contains(FHIROperationType.READ)) generateIdAccess(writer, sd.getName()); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLSchemaGenerator.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLSchemaGenerator.java index 8bbbb0a55..2bda2d70d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLSchemaGenerator.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/GraphQLSchemaGenerator.java @@ -116,7 +116,7 @@ public class GraphQLSchemaGenerator { public void generateResource(OutputStream stream, StructureDefinition sd, List parameters, EnumSet operations) throws IOException, FHIRException { BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream)); writer.write("# FHIR GraphQL Schema. Version "+version+"\r\n\r\n"); - writer.write("# import the types from 'types.graphql'\r\n\r\n"); + writer.write("# import * from 'types.graphql'\r\n\r\n"); generateType(writer, sd); if (operations.contains(FHIROperationType.READ)) generateIdAccess(writer, sd.getName());