relate-app / gatsby-source-strapi-graphql

A Gatsby source plugin for building websites using Strapi as a data source
BSD Zero Clause License
32 stars 9 forks source link

Limit on querying multiple media type #15

Closed lorenciuse closed 2 years ago

lorenciuse commented 2 years ago

In Strapi Graphql Playground I can limit the result for multiple media type by using limit on pagination argument.

Screenshot (213)

But I can't do the same when querying in Gatsby Graphql as the field itself doesn't have an equal pagination argument like Strapi.

Screenshot (214)

timbrandin commented 2 years ago

Alright, the plugin fetches up to 1000 entries from each relationship, I didn't see a need to add pagination to the relationship fields, feel free to write a PR for this feature.

Here is the current relationship implementation: https://github.com/relate-app/gatsby-source-strapi/blob/master/build-types.js#L40-L59

timbrandin commented 2 years ago

Will close as there have been no further request for this.