You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/extensions.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
-
# Extensions
1
+
# Extensions for Doctrine and Elasticsearch
2
+
3
+
> [!WARNING]
4
+
> This is not yet available with [Eloquent](https://laravel.com/docs/eloquent), you're welcome to contribute [on GitHub](https://github.com/api-platform/core)
2
5
3
6
API Platform provides a system to extend queries on items and collections.
4
7
@@ -127,7 +130,7 @@ Note that your extensions should have a positive priority if defined. Internal e
This example adds a `WHERE` clause condition only when a fully authenticated user without `ROLE_ADMIN` tries to access a resource. It means that anonymous users will be able to access all data. To prevent this potential security issue, the API must ensure that the current user is authenticated.
You can now use GraphQL at the endpoint: `https://localhost:8443/graphql`.
20
20
21
21
> [!NOTE]
22
-
> If you used [the Symfony Variant thanks to Symfony Flex](../symfony/index.md#using-symfony-flex-and-composer-advanced-users) or the Laravel variant, URLs will be prefixed with `/api` by default. For example, the GraphQL endpoint will be: `https://localhost:8443/api/graphql`.
22
+
> If you used [the Symfony Variant thanks to Symfony Flex](../symfony/index.md#installing-the-framework)
23
+
> or the Laravel variant, URLs will be prefixed with `/api` by default. For example, the GraphQL endpoint will be: `https://localhost:8443/api/graphql`.
23
24
24
25
## Changing Location of the GraphQL Endpoint
25
26
@@ -138,7 +139,7 @@ api_platform:
138
139
### Disable GraphQL Playground with Laravel
139
140
140
141
> [!WARNING]
141
-
> This is not yet available with Laravel, you're welcome to contribute [on Github](github.com/api-platform/core)
142
+
> This is not yet available with Laravel, you're welcome to contribute [on GitHub](https://github.com/api-platform/core)
142
143
143
144
### Add another Location for GraphQL Playground
144
145
@@ -1100,7 +1101,7 @@ resources:
1100
1101
1101
1102
### Syntax for Filters with a List of Key / Value Arguments
1102
1103
1103
-
Some filters like the [exists filter](filters.md#exists-filter) or the [order filter](filters.md#order-filter-sorting) take a list of key / value as arguments.
1104
+
Some filters like the [exists filter](doctrine-filters.md#exists-filter) or the [order filter](doctrine-filters.md#order-filter-sorting) take a list of key / value as arguments.
1104
1105
1105
1106
The first syntax coming to mind to use them is to write:
1106
1107
@@ -1387,7 +1388,8 @@ resources:
1387
1388
1388
1389
</code-selector>
1389
1390
1390
-
Once enabled, a `page` filter will be available in the collection query (its name [can be changed in the configuration](pagination.md)) and an `itemsPerPage` filter will be available too if [client-side-pagination](pagination.md#client-side) is enabled.
1391
+
Once enabled, a `page` filter will be available in the collection query (its name [can be changed in the configuration](pagination.md))
1392
+
and an `itemsPerPage` filter will be available too if [client-side-pagination](pagination.md#changing-the-number-of-items-per-page-for-a-specific-resource) is enabled.
1391
1393
1392
1394
A `paginationInfo` field can be queried to obtain the following information:
1393
1395
@@ -2812,7 +2814,7 @@ final class BookContextBuilder implements SerializerContextBuilderInterface
2812
2814
## Export the Schema in SDL
2813
2815
2814
2816
> [!WARNING]
2815
-
> This command is not yet available with Laravel, you're welcome to contribute [on Github](github.com/api-platform/core)
2817
+
> This command is not yet available with Laravel, you're welcome to contribute [on GitHub](https://github.com/api-platform/core)
2816
2818
2817
2819
You may need to export your schema in SDL (Schema Definition Language) to import it in some tools.
0 commit comments