Skip to content

Commit

Permalink
fix create cloud profile gql mutation data argument (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
98sean98 authored Jul 17, 2023
1 parent f1d1291 commit 4e1fb95
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 37 deletions.
6 changes: 3 additions & 3 deletions api/generated/client.go

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

84 changes: 52 additions & 32 deletions api/generated/models_gen.go

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

2 changes: 1 addition & 1 deletion service/cloud_profile/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// Create creates a new cloud profile for the given account.
func (c *Client) Create(ctx context.Context, whereAccount generated.AccountWhereUniqueInput, data generated.CloudProfileCreateInput) (cloudProfile generated.CloudProfileFragment, err error) {
func (c *Client) Create(ctx context.Context, whereAccount generated.AccountWhereUniqueInput, data generated.CreateCloudProfileInput) (cloudProfile generated.CloudProfileFragment, err error) {

responseData, err := c.options.API.GetGQLClient().CreateCloudProfile(ctx, whereAccount, data)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion service/cloud_profile/query.gql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ query GetCloudProfiles($whereAccount: AccountWhereUniqueInput! $whereCloudProfil
}
}

mutation CreateCloudProfile($whereAccount: AccountWhereUniqueInput! $data: CloudProfileCreateInput!) {
mutation CreateCloudProfile($whereAccount: AccountWhereUniqueInput! $data: CreateCloudProfileInput!) {
createCloudProfile(
whereAccount: $whereAccount
data: $data
Expand Down

0 comments on commit 4e1fb95

Please sign in to comment.