Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ This way you can adjust menu sections that are reproduced by the front end as ta
The default `menu` object is structured as follows.
Recreate this pattern when modifying an existing event with an intention to send it to the front end.

```
```text
root (MenuItem)
├── help__general // ("General" section)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ ibexa:
repository: second_repository
```

```
```bash
# .env.local

SECOND_DATABASE_URL=otherdb://otheruser:otherpasswd@otherhost:otherport/otherdbname?otherdbserversion
Expand Down
4 changes: 2 additions & 2 deletions docs/api/graphql/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ You can get your session cookie by logging in through the interface or through a

If you have [JWT authentication](development_security.md#jwt-authentication) enabled, you can use the following query to get your authentication token:

```
```graphql
mutation CreateToken {
createToken(username: "admin", password: "publish") {
token
Expand All @@ -83,7 +83,7 @@ mutation CreateToken {

Response:

```
```json
{
"data": {
"createToken": {
Expand Down
16 changes: 8 additions & 8 deletions docs/api/graphql/graphql_operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can also make use of the generic `deleteContent` and `uploadFiles` mutations

Create a new Folder as a child of Location `2` with:

```
```graphql
mutation createFolder {
createFolder(
language: eng_GB
Expand All @@ -30,7 +30,7 @@ mutation createFolder {

Response:

```
```json
{
"data": {
"createFolder": {
Expand All @@ -44,7 +44,7 @@ Response:

Modify the name of a Folder content item with:

```
```graphql
mutation updateFolder {
updateFolder(
language: eng_GB
Expand All @@ -60,7 +60,7 @@ mutation updateFolder {

Response:

```
```json
{
"data": {
"updateFolder": {
Expand All @@ -76,7 +76,7 @@ The input for updating a content item is the same as when creating it, but all f

You can delete any content item by providing its `contentId` (or its GraphQL opaque ID under `id`):

```
```graphql
mutation deleteBlogPost {
deleteContent(contentId: 64) {
id
Expand All @@ -87,7 +87,7 @@ mutation deleteBlogPost {

Response:

```
```json
{
"data": {
"deleteContent": {
Expand All @@ -107,7 +107,7 @@ Response:

Uploading files makes use of dedicated mutations per content type, for example:

```
```graphql
mutation CreateImage($file: FileUpload!) {
createImage(
parentLocationId: 51,
Expand Down Expand Up @@ -161,7 +161,7 @@ curl -v -X POST \
You can upload multiple files with one operation in a similar way by using the `uploadFiles` mutation.
Here the files are provided in a `$files` variable and listed under `map` in the cURL request.

```
```graphql
mutation UploadMultipleFiles($files: [FileUpload]!) {
uploadFiles(
locationId: 51,
Expand Down
Loading
Loading