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

fix(GraphQL Node): Throw error if GraphQL variables are not objects or strings #11904

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dana-gill
Copy link
Contributor

@dana-gill dana-gill commented Nov 26, 2024

Summary

This PR throws an error if the variables set in the GraphQL nodes are neither objects nor strings. This also performs some cleanups to the GraphQL node.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1602/graphql-node-unsuccessful-evaluation-of-variables-expression-silently

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@dana-gill dana-gill changed the title fix(node): Throw error if GraphQL variables are not objects or strings fix(graphql): Throw error if GraphQL variables are not objects or strings Nov 26, 2024
@dana-gill dana-gill changed the title fix(graphql): Throw error if GraphQL variables are not objects or strings fix(GraphQL Node): Throw error if GraphQL variables are not objects or strings Nov 26, 2024
@dana-gill dana-gill force-pushed the node-1602-graphql-node-unsuccessful-evaluation-of-variables branch from 863fc17 to 9bac150 Compare November 26, 2024 16:13
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Nov 26, 2024
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/nodes-base/nodes/GraphQL/GraphQL.node.ts 42.85% 6 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@dana-gill dana-gill marked this pull request as ready for review November 26, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant