(table, values)
| 72 | }); |
| 73 | }, |
| 74 | async create(table, values) { |
| 75 | const result = await client.mutation(api.mutationHandler, { |
| 76 | tableName: table.ormName, |
| 77 | action: { |
| 78 | type: "create", |
| 79 | data: [values], |
| 80 | returning: true, |
| 81 | }, |
| 82 | secret, |
| 83 | }); |
| 84 | |
| 85 | return result?.[0]; |
| 86 | }, |
| 87 | async createMany(table, values) { |
| 88 | const results = await client.mutation(api.mutationHandler, { |
| 89 | tableName: table.ormName, |
nothing calls this directly
no outgoing calls
no test coverage detected