We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deleteAll
1 parent d000186 commit be71c66Copy full SHA for be71c66
packages/query-graphql/__tests__/integration/federation-n1/fixtures/test-data.ts
@@ -6,8 +6,8 @@ import { TodoList } from '../entities/todo-list.entity'
6
7
export const createTestData = async (dataSource: DataSource) => {
8
// Clear existing data
9
- await dataSource.getRepository(TodoItem).delete({})
10
- await dataSource.getRepository(TodoList).delete({})
+ await dataSource.getRepository(TodoItem).deleteAll()
+ await dataSource.getRepository(TodoList).deleteAll()
11
12
// Create 5 TodoLists (matching your demo scenario)
13
const todoLists: TodoList[] = []
0 commit comments