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 Feb 22, 2022
1 parent ed63361 commit ed6f2b3
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 PLATFORM_SCHEMA_PATH = 'ezplatform/';
public const PLATFORM_SCHEMA_FILE = self::PLATFORM_SCHEMA_PATH . 'Domain.types.yaml';
public const PLATFORM_MUTATION_FILE = self::PLATFORM_SCHEMA_PATH . 'DomainContentMutation.types.yaml';
public const PLATFORM_MUTATION_FILE = self::PLATFORM_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 ed6f2b3

Please sign in to comment.