Skip to content
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

Merged
merged 3 commits into from
Dec 18, 2023
Merged

Conversation

sbarker2
Copy link
Collaborator

We need a code representation of the when statement.

@sbarker2 sbarker2 requested a review from gnawf December 18, 2023 01:47
@@ -489,7 +520,7 @@ private class Factory(
}
StaticArgument -> {
NadelHydrationActorInputDef.ValueSource.StaticValue(
value = remoteArgDef.remoteArgumentSource.staticValue!!
value = remoteArgDef.remoteArgumentSource.staticValue!!
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just from reformatting

Copy link
Collaborator

@gnawf gnawf left a 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
Copy link
Collaborator

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.

@sbarker2 sbarker2 merged commit efb2799 into master Dec 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants