-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from wangyuheng/master
支持合并多graphql schema
- Loading branch information
Showing
10 changed files
with
149 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type Mock{ | ||
id: String! | ||
name: String! | ||
} | ||
|
||
input MockInput{ | ||
name: String! | ||
} |
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,8 @@ | ||
type Mock{ | ||
id: String! | ||
name: String! | ||
} | ||
|
||
input MockInput{ | ||
name: String! | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,7 @@ spring: | |
# sampler: | ||
# probability: 1 | ||
server: | ||
port: 8401 | ||
port: 8401 | ||
arc: | ||
graphql: | ||
define: graphql/*.graphqls |
54 changes: 54 additions & 0 deletions
54
sample/graphql-sample/src/main/resources/graphql/project.graphqls
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,54 @@ | ||
|
||
""" | ||
名称 | ||
为了达到某个产品迭代、产品模块开发、或者科研调研等目的所做的工作. | ||
""" | ||
type Project{ | ||
id: String! | ||
name: String! | ||
description: String! | ||
createTime: DateTime! | ||
milestones( | ||
status: MilestoneStatus | ||
): [Milestone] | ||
} | ||
""" | ||
里程碑 | ||
表述一个Project的某个时间阶段及阶段性目标. 一个Project可以同时拥有多个处于相同或者不同阶段的Milestone. | ||
""" | ||
type Milestone{ | ||
id: String! | ||
name: String! | ||
description: String! | ||
status: MilestoneStatus | ||
creator: User | ||
} | ||
|
||
""" | ||
里程碑状态 | ||
""" | ||
enum MilestoneStatus{ | ||
""" | ||
未开始 | ||
""" | ||
NOT_STARTED, | ||
""" | ||
进行中 | ||
""" | ||
DOING, | ||
""" | ||
发布 | ||
""" | ||
RELEASE, | ||
""" | ||
关闭 | ||
""" | ||
CLOSE | ||
} | ||
|
||
input ProjectInput{ | ||
name: String! @Size(min : 3, max : 100) | ||
description: String! | ||
dsl: String! | ||
vendorBranches: [String!]! | ||
} |
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
3 changes: 3 additions & 0 deletions
3
sample/graphql-sample/src/main/resources/graphql/user.graphqls
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,3 @@ | ||
type User { | ||
name: String! | ||
} |