Skip to content
Snippets Groups Projects
Commit 43dc221f authored by CARLUCCI ROMAIN's avatar CARLUCCI ROMAIN
Browse files

Merge branch 'main' of git.unistra.fr:rcarlucci/w41

parents a393fbb5 d646aa83
Branches
No related merge requests found
......@@ -76,7 +76,7 @@ import { Prisma } from '@prisma/client';
const filter: Prisma.AuthorWhereInput = {};
// puis en fonction des paramètres de la requête, ajouter des filtres
if (/* ... */) {
lastname: { contains: String(...) } // là aussi, on type clairement la valeur en type String
filter.lastname = { contains: String(...) } // là aussi, on type clairement la valeur en type String
};
```
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment