Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update products #9

Closed
wants to merge 12 commits into from
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ jobs:
name=$(echo "$subgraph" | jq -r '.featureSubgraphName')
baseSubgraphName=$(echo "$subgraph" | jq -r '.baseSubgraphName')
dockerFilePath=./Dockerfile.$baseSubgraphName
echo $name
echo $baseSubgraphName
echo $dockerFilePath
if flyctl apps list | grep -q $name; then
flyctl deploy --app $name --yes
echo "Updating $name"
flyctl deploy --app $name --dockerfile $dockerFilePath --yes
else
flyctl launch --name $name --region lax --dockerfile $dockerFilePath --org wundergraph-demos --yes
fi
Expand Down
10 changes: 10 additions & 0 deletions demos/go/pkg/subgraphs/family/subgraph/employees.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var employees = []*model.Employee{
HasChildren: true,
MaritalStatus: &married,
Nationality: model.NationalityGerman,
A: "A",
},
},
{
Expand All @@ -30,6 +31,7 @@ var employees = []*model.Employee{
HasChildren: false,
MaritalStatus: &engaged,
Nationality: model.NationalityGerman,
A: "A",
},
},
{
Expand All @@ -49,6 +51,7 @@ var employees = []*model.Employee{
Dangerous: "yes",
},
},
A: "A",
},
},
{
Expand All @@ -73,6 +76,7 @@ var employees = []*model.Employee{
Name: "Survivor",
},
},
A: "A",
},
},
{
Expand Down Expand Up @@ -146,6 +150,7 @@ var employees = []*model.Employee{
Type: model.CatTypeHome,
},
},
A: "A",
},
},
{
Expand All @@ -156,6 +161,7 @@ var employees = []*model.Employee{
Middlename: String(""),
HasChildren: false,
Nationality: model.NationalityIndian,
A: "A",
},
},
{
Expand All @@ -166,6 +172,7 @@ var employees = []*model.Employee{
Middlename: String(""),
HasChildren: false,
Nationality: model.NationalityIndian,
A: "A",
},
},
{
Expand All @@ -183,6 +190,7 @@ var employees = []*model.Employee{
Name: "Vanson",
},
},
A: "A",
},
},
{
Expand All @@ -194,6 +202,7 @@ var employees = []*model.Employee{
HasChildren: true,
MaritalStatus: &married,
Nationality: model.NationalityGerman,
A: "A",
},
},
{
Expand All @@ -212,6 +221,7 @@ var employees = []*model.Employee{
Type: model.CatTypeHome,
},
},
A: "A",
},
},
}
60 changes: 60 additions & 0 deletions demos/go/pkg/subgraphs/family/subgraph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demos/go/pkg/subgraphs/family/subgraph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions demos/go/pkg/subgraphs/family/subgraph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ type Details {
maritalStatus: MaritalStatus
nationality: Nationality!
pets: [Pet]
a: String!
}

type Employee @key(fields: "id") {
Expand Down
10 changes: 10 additions & 0 deletions demos/go/pkg/subgraphs/products/subgraph/employees.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var employees = []*model.Employee{
model.ProductNameMarketing,
model.ProductNameSdk,
},
ProductCount: 5,
Notes: strPtr("Jens notes resolved by products"),
},
{
Expand All @@ -24,6 +25,7 @@ var employees = []*model.Employee{
model.ProductNameCosmo,
model.ProductNameSdk,
},
ProductCount: 2,
Notes: strPtr("Dustin notes resolved by products"),
},
{
Expand All @@ -32,6 +34,7 @@ var employees = []*model.Employee{
model.ProductNameConsultancy,
model.ProductNameMarketing,
},
ProductCount: 2,
Notes: strPtr("Stefan notes resolved by products"),
},
{
Expand All @@ -41,6 +44,7 @@ var employees = []*model.Employee{
model.ProductNameHumanResources,
model.ProductNameMarketing,
},
ProductCount: 3,
Notes: strPtr("Björn notes resolved by products"),
},
{
Expand All @@ -49,6 +53,7 @@ var employees = []*model.Employee{
model.ProductNameEngine,
model.ProductNameSdk,
},
ProductCount: 2,
Notes: strPtr("Sergiy notes resolved by products"),
},
{
Expand All @@ -57,6 +62,7 @@ var employees = []*model.Employee{
model.ProductNameCosmo,
model.ProductNameSdk,
},
ProductCount: 2,
Notes: strPtr("Suvij notes resolved by products"),
},
{
Expand All @@ -65,6 +71,7 @@ var employees = []*model.Employee{
model.ProductNameCosmo,
model.ProductNameSdk,
},
ProductCount: 2,
Notes: strPtr("Nithin notes resolved by products"),
},
{
Expand All @@ -74,13 +81,15 @@ var employees = []*model.Employee{
model.ProductNameCosmo,
model.ProductNameSdk,
},
ProductCount: 3,
Notes: strPtr("Eelco notes resolved by products"),
},
{
ID: 11,
Products: []model.ProductName{
model.ProductNameFinance,
},
ProductCount: 1,
Notes: strPtr("Alexandra notes resolved by products"),
},
{
Expand All @@ -91,6 +100,7 @@ var employees = []*model.Employee{
model.ProductNameEngine,
model.ProductNameSdk,
},
ProductCount: 4,
Notes: strPtr("David notes resolved by products"),
},
}
66 changes: 63 additions & 3 deletions demos/go/pkg/subgraphs/products/subgraph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading