In the v3 there is none really, in both REST and GraphQL we fetch everything from the database (effectively a select * from ....) but the v4 has changed this for both, see these RFCs:
- Start Date: 2021-07-01
- RFC PR: (leave this empty)
# Summary
In v4 we are build a new database layer to support the future evolution of Strapi and we are introducing a new query engine along with it.
The query engine should mostly be used by plugin developers, developers adding custom business logic to their applications and the Strapi core team.
# Example
```js
db.query("article").findMany({
where: {
title: {
$startWith: "2021",
$endsWith: "v4",
},
},
populate: {
This file has been truncated. show original
- Start Date: 2021-05-24
- RFC PR: (leave this empty)
# Summary
Here is a first draft of what we would like the GraphQL API to look like in v4.
## Motivation
The idea behind those changes is to make the GraphQL API simpler, more powerful and customizable.
It'll also take advantage of the changes in the database layer (especially the new query engine).
Finally, it'll make it easier to add features over time.
## Overview
**url**: `/graphql`
## Retrieving Data
### Fetching Entities
This file has been truncated. show original