-
Notifications
You must be signed in to change notification settings - Fork 23
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
Parse when condition in blueprint #494
Conversation
@@ -489,7 +520,7 @@ private class Factory( | |||
} | |||
StaticArgument -> { | |||
NadelHydrationActorInputDef.ValueSource.StaticValue( | |||
value = remoteArgDef.remoteArgumentSource.staticValue!! | |||
value = remoteArgDef.remoteArgumentSource.staticValue!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this just from reformatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some pending changes, but looks good otherwise.
import graphql.nadel.engine.transform.query.NadelQueryPath | ||
|
||
sealed class NadelHydrationWhenCondition { | ||
abstract fun evaluate(resultId: String): Boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resultId
should be Any
(maybe nullable too) probably. But we can fix that up in another PR.
lib/src/main/java/graphql/nadel/engine/blueprint/NadelExecutionBlueprintFactory.kt
Outdated
Show resolved
Hide resolved
lib/src/main/java/graphql/nadel/engine/blueprint/hydration/NadelHydrationWhenCondition.kt
Outdated
Show resolved
Hide resolved
lib/src/main/java/graphql/nadel/engine/blueprint/NadelExecutionBlueprintFactory.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Franklin Wang <[email protected]>
We need a code representation of the when statement.