-
-
Notifications
You must be signed in to change notification settings - Fork 901
GraphQl: interface implementation #3306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4973ddc
ccb4e30
ff7f2c3
2d59de2
61aff2b
228893e
7bbb8db
b3f2c99
a1570c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -72,6 +72,10 @@ public function getSchema(): Schema | |||
continue; | ||||
} | ||||
|
||||
if ($resourceMetadata->isInterface()) { | ||||
continue; | ||||
} | ||||
|
||||
Comment on lines
+75
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure skipping the operations for interfaces is the correct approach. And if we do, we should at least trigger warnings or something if they are defined anyway. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Weak place, agree. We can safely move this conditions to include custom query operations here core/src/GraphQl/Type/SchemaBuilder.php Line 90 in a1570c8 |
||||
if ($resourceMetadata->getGraphqlAttribute($operationName, 'item_query')) { | ||||
$queryFields += $this->fieldsBuilder->getItemQueryFields($resourceClass, $resourceMetadata, $operationName, $value); | ||||
|
||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be under the
graphql
-key, as this is only supported for the GraphQL format / endpoints.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukasluecke can you explain
graphql-key
- what does it mean? Prefix for property name?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CvekCoding There is already a configuration key
graphql
, under which we configure the operations etc. - I think it would make sense to include it inside of that, instead of at the root level.