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

feat: added method to type-safely get List of objects #320

Conversation

BlasiusSecundus
Copy link

Currently there is no simple way to get a type-safe list from GraphQLResponse. get("$.data.fooBars", List.class) would return a list of LinkedHashMaps, requiring an additional step to convert these to a list of POJOs.

This small new method is intended to simplify this repetitive step.

@oliemansm oliemansm merged commit 7482def into graphql-java-kickstart:master Feb 6, 2020
@oliemansm oliemansm added this to the 7.0.0 milestone Feb 6, 2020
@oliemansm
Copy link
Member

Thanks!

@BlasiusSecundus BlasiusSecundus deleted the feature/test-response-improvements branch September 26, 2020 04:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants