Skip to content

Commit f88cb83

Browse files
committed
Merge branch '1.8' into 1.x
2 parents e51d7cc + 7bd6287 commit f88cb83

File tree

91 files changed

+887
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+887
-325
lines changed

doc/02_Basic_Principle.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ Pimcore Datahub allows defining multiple endpoints that allow data delivery and
66

77
1. Open the Datahub configuration panel:
88

9+
<div class="image-as-lightbox"></div>
10+
911
![Configuration Overview](./img/graphql/configuration3.png)
1012

1113

1214
2. Choose an endpoint technology:
1315

16+
<div class="image-as-lightbox"></div>
17+
1418
![Add Configuration](./img/add_config.png)
1519

1620
3. Get the configuration done by defining the followings:
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# General Settings
22

3+
<div class="image-as-lightbox"></div>
4+
35
![General Settings](../../img/graphql/general.png)
46

57
#### Some Aspects:
@@ -8,9 +10,15 @@
810
the [workspace settings](./03_Security_Settings.md).
911

1012
SQL Condition is currently deprecated but still enabled by default. If you want to disable it, you can do so in the symfony configuration tree:
11-
```
13+
14+
```yaml
1215
pimcore_data_hub:
1316
graphql:
1417
allow_sqlObjectCondition: false
1518
```
16-
Please note that this option will be also removed in the next major version.
19+
20+
:::caution
21+
22+
Please note that this option will be also removed in the next major version.
23+
24+
:::

doc/10_GraphQL/01_Configuration/02_Schema_Settings.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Schema settings define which data entities (Data Object classes, Assets, Documents) should be exposed via the endpoint. For Assets and Documents, default schemas are provided, for Data Object classes the schema can be defined in the field configuration.
44

5+
<div class="image-as-lightbox"></div>
6+
57
![Add](../../img/graphql/schema_add.png)
68

79
## Query Schema
@@ -14,9 +16,16 @@ When adding a new entity with the `Add` button, you can access the `Available Fi
1416

1517
In addition, you can employ a set of operators.
1618

19+
<div class="image-as-lightbox"></div>
20+
1721
![Schema Settings](../../img/graphql/schema.png)
1822

23+
:::info
24+
1925
Please note that not all data types are supported yet!
26+
27+
:::
28+
2029
You will get a notice if you try to add an unsupported data type.
2130

2231
## Mutation Schema

doc/10_GraphQL/01_Configuration/03_Security_Settings.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
11
# Security Settings
22

3+
The security settings define how the endpoint is secured and which data is accessible.
4+
5+
<div class="image-as-lightbox"></div>
6+
7+
![security1.png](../../img/graphql/security1.png)
8+
39
## Authentication
410

511
Here you can define how users are authenticated when accessing the endpoint.
612

713
#### Supported Methods
814

915
* API Key: needs to be sent with every request.
10-
* ... more to come
16+
17+
#### API Key
18+
19+
To automatically create an API key use the button next to the input.
20+
For each click on the button a new API key is generated and will be added to the input field in addition to the list of existing keys.
1121

1222
## Introspection Settings
1323

14-
Introspection provides an information about queries which are supported by GraphQl schema. This is currently enabled by default. It can be disabled via security settings or in the symfony configuration tree:
24+
Introspection provides an information about queries which are supported by GraphQl schema.
25+
If introspection is enabled, the endpoint will provide a schema definition which can be used by GraphiQL or other tools to provide auto-completion and documentation.
26+
If introspection is disabled, the schema definition will not be provided and therefore no auto-completion or documentation will be available.
27+
28+
This is currently enabled by default. It can be disabled via security settings tab directly in the backend or in the symfony configuration tree:
1529
```
1630
pimcore_data_hub:
1731
graphql:
@@ -20,17 +34,21 @@ pimcore_data_hub:
2034

2135
## Workspace Settings
2236

23-
Defines workspaces for data that should be accessible via the endpoint.
37+
Defines workspaces for data that should be accessible via the endpoint.
2438
The definition is similar to Pimcore user [workspace permissions](https://pimcore.com/docs/6.x/Development_Documentation/Administration_of_Pimcore/Users_and_Roles.html)
2539

40+
:::warning
41+
42+
If no workspace is selected, no directories are accessible.
43+
44+
:::
45+
2646
Available permissions:
2747
* Create
2848
* Read
2949
* Update
3050
* Delete
3151

32-
![Settings](../../img/graphql/security1.png)
33-
3452

3553
## Error Handling - Configuration Values
3654

doc/10_GraphQL/04_Query/05_DataObject_Queries.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DataObject Queries
22

3-
## Supported Data Types
3+
## Suppored Data Types
44

55
Also check out the Pimcore's [data type documentation](https://pimcore.com/docs/6.x/Development_Documentation/Objects/Object_Classes/Data_Types/index.html).
66

@@ -53,18 +53,7 @@ Also check out the Pimcore's [data type documentation](https://pimcore.com/docs/
5353

5454
## Available Query Operators
5555

56-
Check out the [Operators](./06_Operators.md) page for more information.
57-
58-
* Alias
59-
* Asset Thumbnail
60-
* Asset Thumbnail HTML
61-
* Concatenator
62-
* Date Formatter
63-
* Element Counter
64-
* Merge
65-
* Substring
66-
* Static Text
67-
* Trimmer
56+
Check out the [operators section](../08_Operators/README.md) for more information.
6857

6958
## Get single Data Object
7059

doc/10_GraphQL/04_Query/06_Operators.md

Lines changed: 0 additions & 103 deletions
This file was deleted.

doc/10_GraphQL/04_Query/08_Localization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can change the default language for localized fields by passing the `default
66
for single and listing queries.
77

88
##### Sample Request
9-
```
9+
```graphql
1010
{
1111
getNewsListing(defaultLanguage: "de") {
1212
...
@@ -18,7 +18,7 @@ for single and listing queries.
1818
However, you can always provide an alternative language for a specific field.
1919

2020
##### Sample Request
21-
```
21+
```graphql
2222
{
2323
getUser(id: 50, defaultLanguage: "en") {
2424
myAdvancedObjects {
@@ -39,7 +39,7 @@ However, you can always provide an alternative language for a specific field.
3939
```
4040

4141
##### Response
42-
```
42+
```graphql
4343
{
4444
"data": {
4545
"getUser": {

doc/10_GraphQL/04_Query/10_Filtering.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ to filter listing.
66

77

88
## Sample
9-
Get all `Manufacturer` objects which have 'ca' in their name field.
9+
Get all `Manufacturer` objects which have 'ca' in their name field.
10+
11+
<div class="image-as-lightbox"></div>
1012

1113
![Filtered Grid](../../img/graphql/filtering.png)
1214

doc/10_GraphQL/04_Query/11_Query_Samples/05_Sample_Element_Properties.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Get Element Properties
22

3+
<div class="image-as-lightbox"></div>
4+
35
![Sample Document Properties](../../../img/graphql/element_properties.png)
46

57
### Request

doc/10_GraphQL/04_Query/11_Query_Samples/11_Sample_GetAsset.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
# Get Asset By Id
22

33
If you want to access an Asset directly.
4+
5+
:::caution
6+
47
Note that the data will be base64 encoded and quite time-consuming to deliver.
58

9+
:::
10+
611
Deeplink: [http://pimcore-demo-basic.pim.zone/admin/login/deeplink?asset_4_image](http://pimcore-demo-basic.pim.zone/admin/login/deeplink?asset_4_image)
712

813
### Request
914

15+
:::info
16+
1017
Note that for the fullpath and the base64 encoded data you can specify a thumbnail config.
1118
You can use the `format` argument to retrieve the values for a specific format like `webp`.
1219

20+
:::
21+
1322
```
1423
{
1524
getAsset(id: 4) {

doc/10_GraphQL/04_Query/11_Query_Samples/12_Sample_Asset_Metadata.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Get Asset Metadata
22

3+
<div class="image-as-lightbox"></div>
4+
35
![Metadata](../../../img/graphql/asset_metadata.png)
46

57
Deeplink: [http://pimcore-demo-basic.pim.zone/admin/login/deeplink?asset_4_image](http://pimcore-demo-basic.pim.zone/admin/login/deeplink?asset_4_image)
@@ -82,6 +84,8 @@ Get the custom asset metadata for language `de`
8284

8385
## Get Asset Embedded Meta Info
8486

87+
<div class="image-as-lightbox"></div>
88+
8589
![Metadata](../../../img/graphql/asset_embeddedMetaInfo.png)
8690

8791
### Request

doc/10_GraphQL/04_Query/11_Query_Samples/13_Sample_GetAssetListing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
### Request
44

5+
:::info
6+
57
Note that for the fullpath and the base64 encoded data you can specify a thumbnail config.
68

9+
:::
10+
711
```
812
{
913
getAssetListing {

doc/10_GraphQL/04_Query/11_Query_Samples/20_Sample_Manufacturer_Listing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Get Manufacturer Listing
22

3+
<div class="image-as-lightbox"></div>
4+
35
![Grid](../../../img/graphql/manufacturer_listing.png)
46

57
### Request

doc/10_GraphQL/04_Query/11_Query_Samples/21_Sample_ManyToMany_Object_Relation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Many-to-Many Object Relation
22

3+
<div class="image-as-lightbox"></div>
4+
35
![Data](../../../img/graphql/many_to_many_object_relation.png)
46

57
### Request

0 commit comments

Comments
 (0)