Mocking GraphQL, MockList genertes only two items in the array
问题 I am trying to generate a list of 10 items in my GraphQL mock server like this: import { makeExecutableSchema, addMockFunctionsToSchema, MockList } from 'graphql-tools'; import casual from 'casual'; import typeDefs from './schema.graphql'; export const schema = makeExecutableSchema({ typeDefs }); const mocks = { File: () => ({ path: casual.random_element([ '/assets/images/cars/1.JPG', '/assets/images/cars/2.JPG', '/assets/images/cars/3.JPG', '/assets/images/cars/4.JPG', '/assets/images/cars/5