Skip to content

Commit

Permalink
save comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MuniekMg committed Mar 4, 2024
1 parent abaf41d commit 3ca34b3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@ class GraphQLModelBasedTests: XCTestCase {
await Amplify.reset()
}

/*
input AMPLIFY { globalAuthRule: AuthRule = { allow: public } } # FOR TESTING ONLY!
enum PostStatus {
PRIVATE
DRAFT
PUBLISHED
}
type Post @model @auth(rules: [{allow: public}]) {
id: ID!
title: String!
content: String!
createdAt: AWSDateTime!
updatedAt: AWSDateTime
draft: Boolean
rating: Float
status: PostStatus
comments: [Comment]
}
type Comment @model @auth(rules: [{allow: public}]) {
id: ID!
content: String!
createdAt: AWSDateTime!
post: Post
}
*/

// HERE HERE - to działa ale chyba trzeba zrobic osobny fiolder dla testów TransformerV2 tak samo jako w DataStore
// Trzeba zrobuic nowy folder "AWSAPIPluginV2Tests i tam nową klase "GraphQLSyncBased" i tam dac ten test!
// BTW CZY NA PEWNO TREBA DAWAC CONFLICT RESOLUTION ZEBY TESTOWAC ONCREATE ITP?"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ final class IncomingAsyncSubscriptionEventPublisher: AmplifyCancellable {
connectionStatusQueue.maxConcurrentOperationCount = 1
connectionStatusQueue.isSuspended = false

// tutaj trzeba sie jakos dowiedzieć czy to jest v1 czy v2!

let incomingSubscriptionEvents = PassthroughSubject<Event, DataStoreError>()
self.incomingSubscriptionEvents = incomingSubscriptionEvents
self.awsAuthService = awsAuthService ?? AWSAuthService()
Expand Down

0 comments on commit 3ca34b3

Please sign in to comment.