Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 60f1812

Browse files
committed
Added generic getter method for GraphQLResponse (fix #121)
1 parent 5e6efef commit 60f1812

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graphql-spring-boot-test/src/main/java/com/graphql/spring/boot/test/GraphQLResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public String get(String path) {
3030
return context.read(path);
3131
}
3232

33+
public <T> T get(String path, Class<T> type) {
34+
return context.read(path, type);
35+
}
36+
3337
public ReadContext context() {
3438
return context;
3539
}

0 commit comments

Comments
 (0)