Skip to content

Commit

Permalink
IBX-869: fixed loading of mutations schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Nov 15, 2022
1 parent 9bf2e18 commit 8b40bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundle/DependencyInjection/GraphQL/YamlSchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class YamlSchemaProvider implements SchemaProvider
{
public const DXP_SCHEMA_PATH = 'ibexa/';
public const DXP_SCHEMA_FILE = self::DXP_SCHEMA_PATH . 'Domain.types.yaml';
public const DXP_MUTATION_FILE = self::DXP_SCHEMA_PATH . 'DomainContentMutation.types.yaml';
public const DXP_MUTATION_FILE = self::DXP_SCHEMA_PATH . 'ItemMutation.types.yaml';
public const APP_QUERY_SCHEMA_FILE = 'Query.types.yaml';
public const APP_MUTATION_SCHEMA_FILE = 'Mutation.types.yaml';

Expand Down Expand Up @@ -57,7 +57,7 @@ private function getMutationSchema()
if (file_exists($this->getAppMutationSchemaFile())) {
return 'Mutation';
} elseif (file_exists($this->getPlatformMutationSchema())) {
return 'DomainContentMutation';
return 'ItemMutation';
} else {
return null;
}
Expand Down

0 comments on commit 8b40bce

Please sign in to comment.