How to return GraphQLList from data fetcher?

50 views
Skip to first unread message

Johirul Islam

unread,
Nov 3, 2016, 1:48:14 PM11/3/16
to graphql-java
.field(newFieldDefination().type(new GraphQLList<GraphQLInt>).datafetcher(new DataFetcher(){
@override
public Object get(DataFetchingEnvironment env)
{
// Here I want return a list of student id. How can i return that list
}
}))

Peace MICHAELS

unread,
Nov 16, 2016, 7:43:55 AM11/16/16
to graphql-java
simply return a List<Integer> or even an Iterable<Integer> and you are good to go.
Reply all
Reply to author
Forward
0 new messages