change import comment to be compatible with graphql-tools
This commit is contained in:
parent
04a72c6e29
commit
6bf58e678e
|
@ -113,7 +113,7 @@ public class GraphQLSchemaGenerator {
|
||||||
public void generateResource(OutputStream stream, StructureDefinition sd, List<SearchParameter> parameters, EnumSet<FHIROperationType> operations) throws IOException, FHIRException {
|
public void generateResource(OutputStream stream, StructureDefinition sd, List<SearchParameter> parameters, EnumSet<FHIROperationType> operations) throws IOException, FHIRException {
|
||||||
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream));
|
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream));
|
||||||
writer.write("# FHIR GraphQL Schema. Version "+Constants.VERSION+"\r\n\r\n");
|
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);
|
generateType(writer, sd);
|
||||||
if (operations.contains(FHIROperationType.READ))
|
if (operations.contains(FHIROperationType.READ))
|
||||||
generateIdAccess(writer, sd.getName());
|
generateIdAccess(writer, sd.getName());
|
||||||
|
|
|
@ -116,7 +116,7 @@ public class GraphQLSchemaGenerator {
|
||||||
public void generateResource(OutputStream stream, StructureDefinition sd, List<SearchParameter> parameters, EnumSet<FHIROperationType> operations) throws IOException, FHIRException {
|
public void generateResource(OutputStream stream, StructureDefinition sd, List<SearchParameter> parameters, EnumSet<FHIROperationType> operations) throws IOException, FHIRException {
|
||||||
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream));
|
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stream));
|
||||||
writer.write("# FHIR GraphQL Schema. Version "+version+"\r\n\r\n");
|
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);
|
generateType(writer, sd);
|
||||||
if (operations.contains(FHIROperationType.READ))
|
if (operations.contains(FHIROperationType.READ))
|
||||||
generateIdAccess(writer, sd.getName());
|
generateIdAccess(writer, sd.getName());
|
||||||
|
|
Loading…
Reference in New Issue