From 6e5351acc01412690c0f2e9977f310e45898a70b Mon Sep 17 00:00:00 2001 From: Stephanie Freitag <stephanie.freitag@holi.team> Date: Thu, 31 Aug 2023 16:37:16 +0200 Subject: [PATCH] HOLI-5766: add default values to graphql api for pagination --- app/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server.ts b/app/server.ts index 6e596bc..9969597 100644 --- a/app/server.ts +++ b/app/server.ts @@ -75,7 +75,7 @@ const typeDefs = ` type Query { # uses offset-based pagination as described in https://www.apollographql.com/docs/react/pagination/offset-based - projects(offset: Int, limit: Int, location: String): ProjectsResponse! + projects(offset: Int = 0, limit: Int = 10, location: String): ProjectsResponse! project(id: Int!): Project! } `; -- GitLab