Comments (3)
Hi @jaymeen-unadkat-differenz, thanks for opening the issue, here's the formatted log
onUpdateValueListener: data(
Swift.Result<
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>,
Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>
>.success(
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>(
model: AWSPluginsCore.AnyModel(
id: ""DRI#2"#"DRI#2"",
instance: ImbybeTestDemo.Imbybe(
pk: "DRI#2",
sk: "DRI#2",
gsi1: Optional("master"),
gsisk1: Optional("DRI#2"),
name: Optional("Drink 121"),
description: Optional("drink desc 2"),
imageURL: Optional([]),
ordersEmail: nil,
type: Optional("COCKTAIL"),
street: nil,
city: nil,
state: nil,
zipCode: nil,
productCost: nil,
productCategory: nil,
numberOfDrinks: Optional(60),
publishDate: nil,
expirationDate: nil,
eligibleZipCodes: Optional([]),
numberOfCampaigns: nil,
numberOfOffers: nil,
remainingNumberOfCampaigns: nil,
productQuantity: nil,
primaryProduct: Optional(false),
lat: nil,
lng: nil,
operatingHours: nil,
cognitoID: nil,
startingNumberOfOffers: nil,
remainingNumberOfOffers: nil,
campaignStatus: nil,
rating: nil,
comment: nil,
createdAt: Optional(
Amplify.Temporal.DateTime(
foundationDate: 2024-02-07 10:41:15 +0000,
timeZone: Optional(GMT (fixed))
)
),
updatedAt: Optional(
Amplify.Temporal.DateTime(
foundationDate: 2024-02-07 12:31:09 +0000,
timeZone: Optional(GMT (fixed))
)
)
),
modelName: "Imbybe"
),
syncMetadata: AWSPluginsCore.MutationSyncMetadata(
id: "Imbybe|"DRI#2"#"DRI#2"",
deleted: false,
lastChangedAt: 1707309069243,
version: 7
)
)
)
)
receive(_:): data(
Swift.Result<
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>,
Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>
>.success(
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>(
model: AWSPluginsCore.AnyModel(
id: ""DRI#2"#"DRI#2"",
instance: ImbybeTestDemo.Imbybe(
pk: "DRI#2",
sk: "DRI#2",
gsi1: Optional("master"),
gsisk1: Optional("DRI#2"),
name: Optional("Drink 121"),
description: Optional("drink desc 2"),
imageURL: Optional([]),
ordersEmail: nil,
type: Optional("COCKTAIL"),
street: nil,
city: nil,
state: nil,
zipCode: nil,
productCost: nil,
productCategory: nil,
numberOfDrinks: Optional(60),
publishDate: nil,
expirationDate: nil,
eligibleZipCodes: Optional([]),
numberOfCampaigns: nil,
numberOfOffers: nil,
remainingNumberOfCampaigns: nil,
productQuantity: nil,
primaryProduct: Optional(false),
lat: nil,
lng: nil,
operatingHours: nil,
cognitoID: nil,
startingNumberOfOffers: nil,
remainingNumberOfOffers: nil,
campaignStatus: nil,
rating: nil,
comment: nil,
createdAt: Optional(
Amplify.Temporal.DateTime(
foundationDate: 2024-02-07 10:41:15 +0000,
timeZone: Optional(GMT (fixed))
)
),
updatedAt: Optional(
Amplify.Temporal.DateTime(
foundationDate: 2024-02-07 12:31:09 +0000,
timeZone: Optional(GMT (fixed))
)
)
),
modelName: "Imbybe"
),
syncMetadata: AWSPluginsCore.MutationSyncMetadata(
id: "Imbybe|"DRI#2"#"DRI#2"",
deleted: false,
lastChangedAt: 1707309069243,
version: 7
)
)
)
)
dispose(of subscriptionEvent): data(
Swift.Result<
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>,
Amplify.GraphQLResponseError<AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>>
>.success(
AWSPluginsCore.MutationSync<AWSPluginsCore.AnyModel>(
model: AWSPluginsCore.AnyModel(
id: ""DRI#2"#"DRI#2"",
instance: ImbybeTestDemo.Imbybe(
pk: "DRI#2",
sk: "DRI#2",
gsi1: Optional("master"),
gsisk1: Optional("DRI#2"),
name: Optional("Drink 121"),
description: Optional("drink desc 2"),
imageURL: Optional([]),
ordersEmail: nil,
type: Optional("COCKTAIL"),
street: nil,
city: nil,
state: nil,
zipCode: nil,
productCost: nil,
productCategory: nil,
numberOfDrinks: Optional(60),
publishDate: nil,
expirationDate: nil,
eligibleZipCodes: Optional([]),
numberOfCampaigns: nil,
numberOfOffers: nil,
remainingNumberOfCampaigns: nil,
productQuantity: nil,
primaryProd
It doesn't appear to be an error, do you not see the Imbybe
models in the local DB?
Can you provide us with the schema of Imbybe
and it's connected models if it has any, such as belongsTo
/hasMany
relationships?
You can see my other response in #3495 regarding Amplify Studio's usability with Amplify Swift. Amplify Swift requires lazy loading enabled for it to be compatible with the subscription events sourced from other platforms.
In cli.json do you have the feature flag generateModelsForLazyLoadAndCustomSelectionSet set to true? If you are setting it to true now, please make sure to re-run amplify codegen models to re-generate the proper files
from amplify-swift.
duplicate of #3495
from amplify-swift.
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from amplify-swift.
Related Issues (20)
- Version 2.25.7 & 2.26.0 have Package Resolution Failed HOT 5
- Cannot return null for non-nullable type: \'AWSDateTime\' within parent (/onUpdateImbybe/createdAt)" HOT 3
- Update aws-crt-swift dependency to fix a crash HOT 7
- Updating model attribute using Amplify.API.Query HOT 3
- visionOS AWSS3StoragePlugin Compilation Issue HOT 7
- visionOS Unable to fetch/update AuthUserAttribute HOT 9
- Verification Codes are not sent for Amplify Auth HOT 5
- GraphQL API Bug HOT 5
- CUSTOM_AUTH_WITHOUT_SRP being ignored on configuration. HOT 5
- visionOS Sign In With Apple support for Cognito User Pools HOT 6
- Intermittent Session Dumping from Keychain on Unexpected Error in Amplify Auth HOT 18
- so many files “missing" HOT 5
- Improve the update application data documentation HOT 1
- Unknown errors HOT 7
- [DataStore.Flutter] Android sourced mutation not working on iOS with schema HOT 2
- Localization issues HOT 4
- DataStore cannot connect to model's sync subscriptions (AWS_LAMBDA auth type) HOT 1
- error Missing an expected key: 'NSPrivacyCollectedDataTypes' prevents generating Apple Privacy Reports HOT 6
- Created and deleted model on one device appears as created on the other HOT 5
- TaskQueue<Success> async execution is not serial HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-swift.