Skip to content

Commit

Permalink
atlasaction/cloud: give mutation names (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenlu authored Jan 6, 2025
1 parent 9655626 commit 9fa6bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atlasaction/cloud/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type (
// PushSnapshot to the cloud, return the url to the schema snapshot in the cloud.
func (c *Client) PushSnapshot(ctx context.Context, input *PushSnapshotInput) (string, error) {
var (
req = `mutation ($input: PushSnapshotInput!) {
req = `mutation pushSnapshot($input: PushSnapshotInput!) {
pushSnapshot(input: $input) {
newVersion
url
Expand Down Expand Up @@ -107,7 +107,7 @@ type SnapshotHashInput struct{ ScopeIdent }
// SnapshotHash retrieves the hash of the schema snapshot from the cloud.
func (c *Client) SnapshotHash(ctx context.Context, input *SnapshotHashInput) (string, error) {
var (
req = `query ($input: SnapshotHashInput!) {
req = `query snapshotHash($input: SnapshotHashInput!) {
snapshotHash(input: $input) {
hash
}
Expand Down

0 comments on commit 9fa6bcb

Please sign in to comment.