Skip to content

Commit 1ce2877

Browse files
committed
Merge branch '1.9' into 2.x
# Conflicts: # doc/10_GraphQL/10_Events.md
2 parents f4b9b01 + 1c264cf commit 1ce2877

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

doc/10_GraphQL/04_Query/15_Add_Custom_Query_Datatype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To add a type definition, add a section similar to this one to your `services.ym
1515
```
1616
1717
For reference, have a look at a look at the
18-
[`Link datatype`](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/DataObjectQueryFieldConfigGenerator/Link.php).
18+
[`Link datatype`](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/DataObjectQueryFieldConfigGenerator/Link.php).
1919
It also shows how specific attributes are resolved.
2020

2121
If you don't provide a resolver function then the getter method is called instead.

doc/10_GraphQL/04_Query/16_Add_Custom_Query_Operator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Add a section similar to this one to your `services.yml` file.
1616
```
1717
1818
For reference, have a look at a look at the
19-
[`Trimmer operator`](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/Query/Operator/Trimmer.php).
19+
[`Trimmer operator`](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/Query/Operator/Trimmer.php).
2020

2121
### Operator Implementation
2222

2323
You have to provide both JavaScript code dealing with the UI configuration aspects specific to your operator
2424
and the server-side PHP implementation doing the actual calculations.
2525

26-
A JS sample can be found [here](https://github.com/pimcore/data-hub/blob/master/src/Resources/public/js/queryoperator/Trimmer.js).
26+
A JS sample can be found [here](https://github.com/pimcore/data-hub/blob/2.x/src/Resources/public/js/queryoperator/Trimmer.js).
2727

2828
:::info
2929

@@ -35,7 +35,7 @@ Make sure, that your extension gets loaded. See [Pimcore Bundles](https://pimcor
3535
docs page for further details.
3636

3737
Next thing is to provide the server-side implementation.
38-
A sample can be found [here](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/Query/Operator/Trimmer.php).
38+
A sample can be found [here](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/Query/Operator/Trimmer.php).
3939

4040
Finally, we have to define how the operator instances get created.
4141
In most cases we use the `DefaultOperatorFactory` for that:

doc/10_GraphQL/07_Mutation/25_Add_Custom_Mutation_Datatype.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Add a section similar to this one to your `services.yml` file.
1414
```
1515
1616
For reference, have a look at a look at the
17-
[`Geopoint datatype`](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/DataObjectMutationFieldConfigGenerator/Geopoint.php).
17+
[`Geopoint datatype`](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/DataObjectMutationFieldConfigGenerator/Geopoint.php).
1818

1919
You return a valid GraphQL input type (which is an `InputObjectType`) here and a `Processor` which processes the actual
2020
input data.
2121

2222
For a rather simple example have a look at the
23-
[`Date`](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/DataObjectMutationFieldConfigGenerator/Date.php)
23+
[`Date`](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/DataObjectMutationFieldConfigGenerator/Date.php)
2424
implementation (which both accepts integer and string input values).
2525

doc/10_GraphQL/07_Mutation/26_Add_Custom_Mutation_Operator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add a section similar to this one to your `services.yml` file.
1515
```
1616
1717
For reference have a look at:
18-
[`IfEmpty Operator`](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/DataObjectMutationOperatorConfigGenerator/IfEmpty.php).
18+
[`IfEmpty Operator`](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/DataObjectMutationOperatorConfigGenerator/IfEmpty.php).
1919

2020
This will again define a processor (see the next subsection) and try to automatically determine the input type
2121
depending on its child element.
@@ -27,7 +27,7 @@ You have to provide both JavaScript code dealing with the UI configuration aspec
2727
and the server-side PHP implementation processing the input (the input processor according to your input schema).
2828

2929
A JS sample can be found
30-
[here](https://github.com/pimcore/data-hub/blob/master/src/Resources/public/js/mutationoperator/IfEmpty.js).
30+
[here](https://github.com/pimcore/data-hub/blob/2.x/src/Resources/public/js/mutationoperator/IfEmpty.js).
3131

3232
:::info
3333

@@ -40,7 +40,7 @@ docs page for further details.
4040

4141
Next thing is to provide the input processor on the server side.
4242
A sample can be found
43-
[here](https://github.com/pimcore/data-hub/blob/master/src/GraphQL/DataObjectInputProcessor/IfEmptyOperator.php).
43+
[here](https://github.com/pimcore/data-hub/blob/2.x/src/GraphQL/DataObjectInputProcessor/IfEmptyOperator.php).
4444
It will get the child value and only overwrite the current value if it is empty.
4545

4646

doc/10_GraphQL/10_Events.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Events
22

33
Datahub GraphQL events are based on the Symfony event dispatcher, and are triggered during execution of Query and Mutation requests.
4-
[Read more](https://github.com/pimcore/pimcore/blob/master/doc/Development_Documentation/20_Extending_Pimcore/11_Event_API_and_Event_Manager.md) about events on Pimcore documentation.
4+
[Read more](https://docs.pimcore.com/platform/Pimcore/Extending_Pimcore/Event_API_and_Event_Manager) about events on Pimcore documentation.
55

66
All Datahub events are defined as a constant on component classes:
7-
- [Query](https://github.com/pimcore/data-hub/blob/master/src/Event/GraphQL/QueryEvents.php)
8-
- [Mutation](https://github.com/pimcore/data-hub/blob/master/src/Event/GraphQL/MutationEvents.php)
9-
- [Executor](https://github.com/pimcore/data-hub/blob/master/src/Event/GraphQL/ExecutorEvents.php)
10-
- [Listing](https://github.com/pimcore/data-hub/blob/master/src/Event/GraphQL/ListingEvents.php)
11-
- [Ouput cache](https://github.com/pimcore/data-hub/blob/master/src/Event/GraphQL/OutputCacheEvents.php)
7+
- [Query](https://github.com/pimcore/data-hub/blob/2.x/src/Event/GraphQL/QueryEvents.php)
8+
- [Mutation](https://github.com/pimcore/data-hub/blob/2.x/src/Event/GraphQL/MutationEvents.php)
9+
- [Executor](https://github.com/pimcore/data-hub/blob/2.x/src/Event/GraphQL/ExecutorEvents.php)
10+
- [Listing](https://github.com/pimcore/data-hub/blob/2.x/src/Event/GraphQL/ListingEvents.php)
11+
- [Ouput cache](https://github.com/pimcore/data-hub/blob/2.x/src/Event/GraphQL/OutputCacheEvents.php)
1212

1313
## Event Subscriber Examples
1414

@@ -180,7 +180,7 @@ class GraphQlSubscriber implements EventSubscriberInterface
180180

181181
#### Example 4: Add custom query conditions to object listing
182182

183-
- For simple filter conditions also see [Filtering](https://github.com/pimcore/data-hub/blob/master/doc/graphl/Filtering.md#request)
183+
- For simple filter conditions also see [Filtering](./04_Query/10_Filtering.md)
184184

185185
```php
186186
<?php

0 commit comments

Comments
 (0)