Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawf committed Aug 5, 2024
1 parent 4c58f4e commit 2bd7638
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ abstract class HydrationDeferForwardsErrors(
issuesByKey[env.getArgument("key")]
}
.dataFetcher("issuesByKeys") { env ->
val keys = env.getArgument<List<String>>("keys").toSet()
val keys = env.getArgument<List<String>>("keys")!!.toSet()
issues
.filter {
it.key in keys
Expand All @@ -146,14 +146,14 @@ abstract class HydrationDeferForwardsErrors(
.type("Issue") { type ->
type
.dataFetcher("related") { env ->
env.getSource<Issue>()
env.getSource<Issue>()!!
.relatedKeys
.map {
issuesByKey[it]!!
}
}
.dataFetcher("parent") { env ->
issuesByKey[env.getSource<Issue>().parentKey]
issuesByKey[env.getSource<Issue>()!!.parentKey]
}
}
},
Expand Down Expand Up @@ -197,7 +197,7 @@ abstract class HydrationDeferForwardsErrors(
.type("Query") { type ->
type
.dataFetcher("userById") { env ->
val id = env.getArgument<String>("id")
val id = env.getArgument<String>("id")!!
usersById[id] ?: throw UserNotFoundError(id)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferForwardsErrorsFromEachHydrationTest>()
}

/**
* This class is generated. Do NOT modify.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferForwardsErrorsTest>()
}

/**
* This class is generated. Do NOT modify.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ abstract class HydrationDeferInList(
.type("Issue") { type ->
type
.dataFetcher("related") { env ->
env.getSource<Issue>()
env.getSource<Issue>()!!
.relatedKeys
.map {
issuesByKey[it]!!
}
}
.dataFetcher("parent") { env ->
issuesByKey[env.getSource<Issue>().parentKey]
issuesByKey[env.getSource<Issue>()!!.parentKey]
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferIsDisabledInListOfRelatedIssuesForParentIssueTest>()
graphql.nadel.tests.next.update<HydrationDeferInListNestedTest>()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferIsDisabledForRelatedIssuesTest>()
graphql.nadel.tests.next.update<HydrationDeferInListTest>()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferIsDisabledTest>()
graphql.nadel.tests.next.update<HydrationDeferInListTopLevelTest>()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.listOf

private suspend fun main() {
graphql.nadel.tests.next.update<HydrationDeferInListTwoDimensionsTest>()
}

/**
* This class is generated. Do NOT modify.
*
Expand Down

0 comments on commit 2bd7638

Please sign in to comment.