-
Notifications
You must be signed in to change notification settings - Fork 24
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
don't call underlying services on empty queries #519
Conversation
Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution. Already signed the CLA? To re-check, try refreshing the page. |
…ty-querries # Conflicts: # lib/src/main/java/graphql/nadel/NadelExecutionHints.kt # lib/src/main/java/graphql/nadel/NextgenEngine.kt
7c88274
to
e12efc9
Compare
} | ||
val operationType = engineSchema.getTypeAs<GraphQLObjectType>(executableNormalizedField.singleObjectTypeName) | ||
val topLevelFieldDefinition = | ||
operationType.fieldDefinitions.firstOrNull { it.name == executableNormalizedField.name } |
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.
getField(executableNormalizedField.name)
?
queryPath = underlyingParentField?.queryPath ?: NadelQueryPath.root, | ||
flatten = true, | ||
) | ||
val parentNodes = JsonNodes(result.data) |
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 should use the nodes
param instead of creating a new one.
I mean it's test code so it doesn't matter but in reality we want to share one JsonNodes
because it caches some JSON traversals.
Please make sure you consider the following: