-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
190 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
# noinspection GraphQLUnresolvedReference,GraphQLMissingType | ||
extend schema | ||
@link( | ||
url: "https://specs.apollo.dev/kotlin_labs/v0.3", | ||
import: ["@typePolicy", "@fieldPolicy"] | ||
) | ||
|
||
extend type Room @typePolicy(keyFields: "id") | ||
|
||
extend type Session @typePolicy(keyFields: "id") | ||
extend type RootQuery @fieldPolicy(forField: "session", keyArgs: "id") | ||
|
||
extend type RootQuery | ||
@fieldPolicy(forField: "session", keyArgs: "id") | ||
@fieldPolicy(forField: "sessions", paginationArgs: "first after") | ||
@typePolicy(embeddedFields: "sessions") | ||
|
||
extend type Speaker @typePolicy(keyFields: "id") | ||
|
||
extend type Venue @typePolicy(keyFields: "name") | ||
|
||
extend type SessionConnection @typePolicy(embeddedFields: "pageInfo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../src/commonMain/kotlin/fr/androidmakers/domain/interactor/FetchNextSessionsPageUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package fr.androidmakers.domain.interactor | ||
|
||
import fr.androidmakers.domain.repo.SessionsRepository | ||
|
||
class FetchNextSessionsPageUseCase( | ||
private val sessionsRepository: SessionsRepository, | ||
) { | ||
suspend operator fun invoke() { | ||
sessionsRepository.fetchNextSessionsPage() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.