```export const seedUser = mutationField('seedUser...
# orm-help
t
Copy code
export const seedUser = mutationField('seedUser', {
    type: 'User',
    args: {
        number: intArg(),
    },
    resolve: (_, { number }, { prisma }) => {
        return [...new Array(number)].map(() =>
            prisma.user.create({
                data: {
                    userId: Math.random().toString(),
                    email: Math.random().toString(),
                    profile: {
                        create: { bio: '123', name: '456' },
                    },
                },
            })
        )
    },
})