Skip to content

Commit

Permalink
Add patch to fix graphql schema building.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-getopensocial authored and robertragas committed Dec 6, 2024
1 parent 04969e4 commit ecb60d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
"Add relationship to flagged entities when Flagging is base table": "https://www.drupal.org/files/issues/2021-11-08/2723703-76.patch"
},
"drupal/graphql": {
"Issue #3191622: Remove leaked cache metadata check until Open Social properly avoids leaking cache metadata in entity query connections": "https://www.drupal.org/files/issues/2022-11-01/3191622-Implement-cache-metadata-for-ConnectionQueryHelperInterface-3.patch"
"Issue #3191622: Remove leaked cache metadata check until Open Social properly avoids leaking cache metadata in entity query connections": "https://www.drupal.org/files/issues/2022-11-01/3191622-Implement-cache-metadata-for-ConnectionQueryHelperInterface-3.patch",
"Issue #3488581: example/composable_extension.base.graphqls loaded in schema when module disabled" : "https://git.drupalcode.org/project/graphql/-/merge_requests/14/diffs.patch"
},
"drupal/group": {
"Missing config schema for condition.plugin.group_type": "https://www.drupal.org/files/issues/2018-12-14/group-group_type_condition_plugin_config_schema-3020554-2.patch",
Expand Down
14 changes: 12 additions & 2 deletions modules/custom/social_graphql/graphql/open_social.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ API from which all subscriptions must start.
A real-time process must be implemented and deployed to support subscriptions.
"""
type Subscription
type Subscription {
"""
Type Subscription can not be empty, so we add an empty field.
"""
_empty: String
}

################################################################################
# Basic Types #
Expand Down Expand Up @@ -311,7 +316,12 @@ interface Connection {
"""
The base mutation type.
"""
type Mutation
type Mutation {
"""
Type Mutation can not be empty, so we add an empty field.
"""
_empty: String
}

"""
A violation indicates an error in the GraphQL query or other incorrect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ abstract class SocialGraphQLTestBase extends GraphQLTestBase {
*/
protected static $modules = [
"entity",
"file",
"social_graphql",
];

Expand Down

0 comments on commit ecb60d1

Please sign in to comment.