Groups
Groups
Sign in
Groups
Groups
graphql-java
Conversations
About
Send feedback
Help
How to return GraphQLList from data fetcher?
50 views
Skip to first unread message
Johirul Islam
unread,
Nov 3, 2016, 1:48:14 PM
11/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
11/16/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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