concept number in category graphql
appears as: number, number, numbers, numbers, The number

This is an excerpt from Manning's book GraphQL in Action.
Can you use the GitHub field arguments you learned about to find out the top-10 most popular repositories under the jsComplete organization? Base a repository’s popularity on the number of stars it has.
Listing 5.26. New file:
api/src/schema/types/numbers-in-range.jsimport { GraphQLObjectType, GraphQLInt, GraphQLNonNull, } from 'graphql'; const NumbersInRange = new GraphQLObjectType({ name: 'NumbersInRange', description: 'Aggregate info on a range of numbers', fields: { sum: { type: new GraphQLNonNull(GraphQLInt), }, count: { type: new GraphQLNonNull(GraphQLInt), }, }, }); export default NumbersInRange;