First thing
Appreciate this may be a bit of a stupid question, but I\'m working with GraphQL having come from the RDF/Linked Data world and having a
First you need to extend you query by adding a "humans":
extend type Query {
humans(listId: [String!]): [Human!]
human(id: ObjID!): Human
}
Second - write a resolver for it.
Query: {
humans(root, {listId}, { Human }) {
return Human.fillAllByListId(listId);
},
...
},
List of IDs could be passed as follows:
Whit Hasura you can do like this (IDK if that working only on Hasura)
query getConfigurationList($ids: [String!]!) {
configuration (where: {id:{_in: $ids}}){
id
value
}
}
Here is the docs