Skip to content

Commit

Permalink
Breaking commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gpabon-carecloud committed Jun 17, 2020
1 parent 6f0b840 commit 68a6d31
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,28 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
<version>7.0.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-java-tools</artifactId>
<version>6.0.2</version>
</dependency>
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>playground-spring-boot-starter</artifactId>
<version>7.0.1</version>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu3</artifactId>
<version>5.0.2</version>
</dependency>
</dependencies>

<build>
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/example/demo/DeviceResolver.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.example.demo;

import graphql.kickstart.tools.GraphQLQueryResolver;
import org.hl7.fhir.dstu3.model.Device;
import org.springframework.stereotype.Component;

@Component
public class DeviceResolver implements GraphQLQueryResolver {
public Device getHello() {
return new Device();
}
}
11 changes: 11 additions & 0 deletions src/main/resources/device.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type Meta {
id: String
}

type Device {
meta: Meta
}

type Query {
hello: Device!
}

0 comments on commit 68a6d31

Please sign in to comment.