graphql-perl / GraphQL-Plugin-Convert-DBIC

Plugin to convert DBIx::Class schema to GraphQL schema
https://metacpan.org/release/GraphQL-Plugin-Convert-DBIC
4 stars 5 forks source link

Queries for all elements #18

Closed schroeer closed 4 years ago

schroeer commented 4 years ago

Again referring to the example setup of #15.

Another thing that I would like to have is queries such as allPeople. They could easily be made from the existing plural queries by making the id non-mandatory:

type Query {
  people(id: [Int!]): [Person]
}
schroeer commented 4 years ago

I have seen now that all... query fields and my proposal to leverage the plurals have been discussed before in a pull request. I think that all... fields would be useful.