This commit is contained in:
Riccardo
2021-01-01 16:50:17 +01:00
parent e87431f64b
commit 129d036f6b
10 changed files with 267 additions and 30 deletions

Binary file not shown.

View File

@@ -1,11 +1,11 @@
async function feed(parent, args, context, info) {
const where = args.filter
? {
OR: [
{ description: { contains: args.filter } },
{ url: { contains: args.filter } }
]
}
OR: [
{ description: { contains: args.filter } },
{ url: { contains: args.filter } }
]
}
: {};
const links = await context.prisma.link.findMany({