From 864e8611946f6d56d1ababad2724c8b094348605 Mon Sep 17 00:00:00 2001 From: Trevor Scheer Date: Tue, 13 Jun 2023 09:40:17 -0700 Subject: [PATCH] Align RESTDataSource docs example The params option in RESTDataSource was updated to a type which only accepts strings for its values. The docs were updated in the RESTDataSource repo example, but not in our server docs example. Ref: https://github.com/apollographql/datasource-rest/pull/134 --- docs/source/data/fetching-rest.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/data/fetching-rest.mdx b/docs/source/data/fetching-rest.mdx index 0c422c0fb48..8963290cc26 100644 --- a/docs/source/data/fetching-rest.mdx +++ b/docs/source/data/fetching-rest.mdx @@ -52,7 +52,7 @@ class MoviesAPI extends RESTDataSource { async getMostViewedMovies(limit = '10'): Promise { const data = await this.get('movies', { params: { - per_page: limit, + per_page: limit.toString(), // all params entries should be strings, order_by: 'most_viewed', }, });