Skip to content

Commit

Permalink
updated for latest data-schema changes; fixed an import
Browse files Browse the repository at this point in the history
  • Loading branch information
svidgen committed Apr 18, 2024
2 parents 83c1ab2 + 1625424 commit 2566d25
Show file tree
Hide file tree
Showing 6 changed files with 3,534 additions and 3,399 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4092,12 +4092,12 @@ exports[`generateClient basic model operations can list() with sortDirection (AS
"abortController": AbortController {},
"options": {
"body": {
"query": "query ($filter: ModelThingWithCustomPkFilterInput, $sortDirection: ModelSortDirection, $cpk_cluster_key: String, $cpk_sort_key: String, $limit: Int, $nextToken: String) {
"query": "query ($cpk_cluster_key: String, $sortDirection: ModelSortDirection, $cpk_sort_key: ModelStringKeyConditionInput, $filter: ModelThingWithCustomPkFilterInput, $limit: Int, $nextToken: String) {
listThingWithCustomPks(
filter: $filter
sortDirection: $sortDirection
cpk_cluster_key: $cpk_cluster_key
sortDirection: $sortDirection
cpk_sort_key: $cpk_sort_key
filter: $filter
limit: $limit
nextToken: $nextToken
) {
Expand Down Expand Up @@ -4139,12 +4139,12 @@ exports[`generateClient basic model operations can list() with sortDirection (DE
"abortController": AbortController {},
"options": {
"body": {
"query": "query ($filter: ModelThingWithCustomPkFilterInput, $sortDirection: ModelSortDirection, $cpk_cluster_key: String, $cpk_sort_key: String, $limit: Int, $nextToken: String) {
"query": "query ($cpk_cluster_key: String, $sortDirection: ModelSortDirection, $cpk_sort_key: ModelStringKeyConditionInput, $filter: ModelThingWithCustomPkFilterInput, $limit: Int, $nextToken: String) {
listThingWithCustomPks(
filter: $filter
sortDirection: $sortDirection
cpk_cluster_key: $cpk_cluster_key
sortDirection: $sortDirection
cpk_sort_key: $cpk_sort_key
filter: $filter
limit: $limit
nextToken: $nextToken
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ exports[`server generateClient with cookies with request can custom query 1`] =
{
"authMode": undefined,
"authToken": undefined,
"query": "query($argumentContent: String!) {
echo(argumentContent: $argumentContent) {resultContent}
}",
"query": "
query($argumentContent: String!) {
echo(argumentContent: $argumentContent) {resultContent}
}
",
"variables": {
"argumentContent": "echo argumentContent value",
},
Expand Down
3 changes: 2 additions & 1 deletion packages/api-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"dependencies": {
"@aws-amplify/api-rest": "4.0.27",
"@aws-amplify/core": "6.0.27",
"@aws-amplify/data-schema": "^0.14.8",
"@aws-amplify/data-schema": "^0.16.0",
"@aws-amplify/data-schema-types": "^0.9.0",
"@aws-sdk/types": "3.387.0",
"graphql": "15.8.0",
"rxjs": "^7.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/internals/InternalAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
CustomUserAgentDetails,
} from '@aws-amplify/core/internals/utils';
import { Observable } from 'rxjs';
import { CustomHeaders } from '@aws-amplify/data-schema-types';
import { CustomHeaders } from '@aws-amplify/data-schema/runtime';

/**
* NOTE!
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
"name": "[API] generateClient (AppSync)",
"path": "./dist/esm/api/index.mjs",
"import": "{ generateClient }",
"limit": "38.5 kB"
"limit": "39.0 kB"
},
{
"name": "[API] REST API handlers",
Expand Down
Loading

0 comments on commit 2566d25

Please sign in to comment.