Skip to content

Commit d828238

Browse files
Venkat UdayasankarVenkat Udayasankar
authored andcommitted
Initial commit
1 parent e3a49cd commit d828238

File tree

266 files changed

+20500
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+20500
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
### Added
9+
- Initial release.

CODE_OF_CONDUCT.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Open source projects are “living.” Contributions in the form of issues and pull requests are welcomed and encouraged. When you contribute, you explicitly say you are part of the community and abide by its Code of Conduct.
2+
3+
# The Code
4+
5+
At Intuit, we foster a kind, respectful, harassment-free cooperative community. Our open source community works to:
6+
7+
- Be kind and respectful;
8+
- Act as a global community;
9+
- Conduct ourselves professionally.
10+
11+
As members of this community, we will not tolerate behaviors including, but not limited to:
12+
13+
- Violent threats or language;
14+
- Discriminatory or derogatory jokes or language;
15+
- Public or private harassment of any kind;
16+
- Other conduct considered inappropriate in a professional setting.
17+
18+
## Reporting Concerns
19+
20+
If you see someone violating the Code of Conduct please email [email protected]
21+
22+
## Scope
23+
24+
This code of conduct applies to:
25+
26+
All repos and communities for Intuit-managed projects, whether or not the text is included in a Intuit-managed project’s repository;
27+
28+
Individuals or teams representing projects in official capacity, such as via official social media channels or at in-person meetups.
29+
30+
## Attribution
31+
32+
This Code of Conduct is partly inspired by and based on those of Amazon, CocoaPods, GitHub, Microsoft, thoughtbot, and on the Contributor Covenant version 1.4.1.

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# graphql-orchestrator-java
2+
3+
### Overview
4+
5+
**GraphQL Orchestrator** is a library that exposes data from various data providers using a single unified GraphQL schema.
6+
It aggregates and combines the schemas from these data providers and orchestrates the graphql queries to the appropriate services.
7+
It uses the [graphql-java](https://github.com/graphql-java/graphql-java) library as the runtime execution engine on the unified schema.
8+
9+
### Getting Started
10+
11+
Requirement:
12+
* Java 8
13+
* Maven 3
14+
15+
1. Add this library to your project
16+
```
17+
<dependency>
18+
<groupId>com.intuit.graphql</groupId>
19+
<artifactId>stitching</artifactId>
20+
<version>${version}</version>
21+
</dependency>
22+
23+
2. Implement the [ServiceProvider](https://github.intuit.com/data-orchestration/stitching/blob/master/src/main/java/com/intuit/graphql/stitching/ServiceProvider.java) interface for the services you want to stitch.
24+
25+
3. Use the library in your code. Example:
26+
```
27+
// Build the stitcher with multiple services. Service interface in progress
28+
final GraphQLOrchestrator orchestrator = GraphQLOrchestrator.newOrchestrator()
29+
.instrumentations(Collections.emptyList())
30+
.services(Collections.emptyList()) // Implemented in Step 2
31+
.executionIdProvider(ExecutionIdProvider.DEFAULT_EXECUTION_ID_PROVIDER)
32+
.queryExecutionStrategy(new AsyncExecutionStrategy())
33+
.mutationExecutionStrategy(new AsyncExecutionStrategy())
34+
.build();
35+
36+
//execute the request
37+
orchestrator.execute(executionInput);
38+
39+
```
40+
41+
### Documentation
42+
43+
Coming soon...
44+
45+
### Contributing
46+
47+
Read the [Contribution guide](./.github/CONTRIBUTING.md)
48+

buildspec.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 0.2
2+
phases:
3+
pre_build:
4+
commands:
5+
build:
6+
commands:
7+
- mvn clean install -P code.coverage
8+
- mv target/test-lambda-*.jar target/main.jar
9+
post_build:
10+
commands:
11+
- curl -s https://codecov.tools.a.intuit.com/bash | bash -s -- -K
12+
13+
artifacts:
14+
discard-paths: yes
15+
files:
16+
- target/main.jar
17+
- template.yaml
18+
19+
cache:
20+
paths:
21+
- '/root/.m2/**/*'

codecov.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://docs.codecov.io/docs/codecov-yaml
2+
codecov:
3+
branch: master
4+
coverage:
5+
status:
6+
patch:
7+
default:
8+
target: 50%
9+
10+
comment:
11+
layout: "diff, flags, files:10, footer"

lombok.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config.stopBubbling = true
2+
lombok.addLombokGeneratedAnnotation = true

mkdocs/docs/css/css-override.css

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
h1 {
2+
color: black;
3+
}
4+
h2 {
5+
color: #2E0000;
6+
}
7+
h3 {
8+
color: #2C877C;
9+
font-size: 21px;
10+
font-weight: bold;
11+
}
12+
h4 {
13+
color: #25387E;
14+
font-size: 18px;
15+
}
16+
17+
18+
li {
19+
font-size: 16px;
20+
}
21+
tr {
22+
font-size: 16px;
23+
}
24+
25+
img[alt$=">"] {
26+
float:right;
27+
}
28+
29+
img[alt$="<"] {
30+
float:left;
31+
}
32+
33+
img[alt$="<>"] {
34+
display: block;
35+
max-width: 100%;
36+
height: auto;
37+
margin: auto;
38+
float: none!important;
39+
}
40+
41+
div p {
42+
text-align: justify;
43+
text-justify: inter-word;
44+
font-size: 16px;
45+
}
46+
47+
.codehilite {
48+
font-size: 14px;
49+
}
50+
51+
/* div pre {
52+
color: #EBECE4;
53+
} */
54+
55+
/* ul .md-nav__item {
56+
font-size: 14px;
57+
} */
58+
59+
/* ul .md-nav__list {
60+
color: red;
61+
} */
62+
63+
/* li .md-nav__item {
64+
color: red;
65+
} */
66+
67+
/* Right Sidebar heading color */
68+
.md-nav--secondary > ul > li > a:first-child {
69+
color: #0a0033;
70+
}
71+
72+
/* Right sidebar list color */
73+
.md-nav--secondary > ul > li .md-nav__item {
74+
font-size: 13px;
75+
}
76+
77+
code{
78+
color: red;
79+
}
80+

mkdocs/docs/img/arch/algorithm.png

137 KB
Loading

mkdocs/docs/img/arch/basic.png

93.5 KB
Loading

mkdocs/docs/img/field-resolver/field-resolver-example.png

Loading

0 commit comments

Comments
 (0)