mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
feat(GraphQL): Add data platform query to GraphQL API (#4574)
This commit is contained in:
parent
cea318ac8e
commit
b277048b72
@ -588,6 +588,9 @@ public class GmsGraphQLEngine {
|
||||
.dataFetcher("domain",
|
||||
new LoadableTypeResolver<>(domainType,
|
||||
(env) -> env.getArgument(URN_FIELD_NAME)))
|
||||
.dataFetcher("dataPlatform",
|
||||
new LoadableTypeResolver<>(dataPlatformType,
|
||||
(env) -> env.getArgument(URN_FIELD_NAME)))
|
||||
.dataFetcher("mlFeatureTable", new AuthenticatedResolver<>(
|
||||
new LoadableTypeResolver<>(mlFeatureTableType,
|
||||
(env) -> env.getArgument(URN_FIELD_NAME))))
|
||||
|
@ -14,6 +14,11 @@ Root type used for fetching DataHub Metadata
|
||||
Coming soon listEntity queries for listing all entities of a given type
|
||||
"""
|
||||
type Query {
|
||||
"""
|
||||
Fetch a Data Platform by primary key (urn)
|
||||
"""
|
||||
dataPlatform(urn: String!): DataPlatform
|
||||
|
||||
"""
|
||||
Fetch a CorpUser, representing a DataHub platform user, by primary key (urn)
|
||||
"""
|
||||
|
5
datahub-web-react/src/graphql/dataPlatform.graphql
Normal file
5
datahub-web-react/src/graphql/dataPlatform.graphql
Normal file
@ -0,0 +1,5 @@
|
||||
query getDataPlatform($urn: String!) {
|
||||
dataPlatform(urn: $urn) {
|
||||
...platformFields
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user