Bind v6 query to query-protocol git repo.

This commit is contained in:
Wu Sheng 2018-09-03 16:33:10 +08:00
parent f2811800b2
commit 231ff105c8
3 changed files with 11 additions and 7 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "apm-protocol/apm-network/src/main/proto"]
path = apm-protocol/apm-network/src/main/proto
url = https://github.com/apache/incubator-skywalking-data-collect-protocol.git
[submodule "oap-server/server-query-plugin/query-graphql-plugin/src/main/resources/query-protocol"]
path = oap-server/server-query-plugin/query-graphql-plugin/src/main/resources/query-protocol
url = https://github.com/apache/incubator-skywalking-query-protocol.git

View File

@ -63,19 +63,19 @@ public class GraphQLQueryProvider extends ModuleProvider {
@Override public void prepare() throws ServiceNotProvidedException, ModuleStartException {
GraphQLSchema schema = SchemaParser.newParser()
.file("ui-graphql-v6/common.graphqls")
.file("query-protocol/common.graphqls")
.resolvers(new Query(), new Mutation())
.file("ui-graphql-v6/metadata.graphqls")
.file("query-protocol/metadata.graphqls")
.resolvers(new MetadataQuery())
.file("ui-graphql-v6/metric.graphqls")
.file("query-protocol/metric.graphqls")
.resolvers(new MetricQuery())
.file("ui-graphql-v6/topology.graphqls")
.file("query-protocol/topology.graphqls")
.resolvers(new TopologyQuery())
.file("ui-graphql-v6/trace.graphqls")
.file("query-protocol/trace.graphqls")
.resolvers(new TraceQuery())
.file("ui-graphql-v6/aggregation.graphqls")
.file("query-protocol/aggregation.graphqls")
.resolvers(new AggregationQuery())
.file("ui-graphql-v6/alarm.graphqls")
.file("query-protocol/alarm.graphqls")
.resolvers(new AlarmQuery())
.build()
.makeExecutableSchema();

@ -0,0 +1 @@
Subproject commit ebbeb721d95bba8ee63bc2e706e877ee3a56433e