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(data): add 'initialValues' type to 'observeQuery' #39

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/great-apples-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/amplify-api-next-types-alpha': minor
---

feat(data): add 'initialValues' types to observeQuery
1 change: 1 addition & 0 deletions .turbo-cookie
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cookie
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not actually sure what this is or what it's used for. Do we need it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's some kind of turbo repo artifact, but we shouldn't commit it. Let's delete this from git and add .turbo-cookie > .gitignore

1 change: 1 addition & 0 deletions packages/amplify-api-next-types/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ type ModelTypesClient<
selectionSet?: SelectionSet;
authMode?: AuthMode;
authToken?: string;
initialValues?: ReturnValue<Model, FlatModel, SelectionSet>[];
david-mcafee marked this conversation as resolved.
Show resolved Hide resolved
}): ObserveQueryReturnValue<ReturnValue<Model, FlatModel, SelectionSet>>;
};

Expand Down
Loading