-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-dataset-key-platform-urn
- Loading branch information
Showing
746 changed files
with
49,267 additions
and
12,587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/GmsGraphQLPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.linkedin.datahub.graphql; | ||
|
||
import com.linkedin.datahub.graphql.types.LoadableType; | ||
import graphql.schema.idl.RuntimeWiring; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
|
||
/** | ||
* An interface that allows the Core GMS GraphQL Engine to be extended without requiring | ||
* code changes in the GmsGraphQLEngine class if new entities, relationships or resolvers | ||
* need to be introduced. This is useful if you are maintaining a fork of DataHub and | ||
* don't want to deal with merge conflicts. | ||
*/ | ||
public interface GmsGraphQLPlugin { | ||
|
||
/** | ||
* Initialization method that allows the plugin to instantiate | ||
* @param args | ||
*/ | ||
void init(GmsGraphQLEngineArgs args); | ||
|
||
/** | ||
* Return a list of schema files that contain graphql definitions | ||
* that are served by this plugin | ||
* @return | ||
*/ | ||
List<String> getSchemaFiles(); | ||
|
||
/** | ||
* Return a list of LoadableTypes that this plugin serves | ||
* @return | ||
*/ | ||
Collection<? extends LoadableType<?, ?>> getLoadableTypes(); | ||
|
||
/** | ||
* Optional callback that a plugin can implement to configure any Query, Mutation or Type specific resolvers. | ||
* @param wiringBuilder : the builder being used to configure the runtime wiring | ||
* @param baseEngine : a reference to the core engine and its graphql types | ||
*/ | ||
default void configureExtraResolvers(final RuntimeWiring.Builder wiringBuilder, final GmsGraphQLEngine baseEngine) { | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.