Skip to content

fields with emoji in keys result in invalid GraphQL mutation queries #100

@gr2m

Description

@gr2m

Please avoid duplicates

Reproducible test case

No response

Please select the environment(s) that are relevant to your bug report

  • Browsers
  • Node
  • Deno

Versions

3.3.0

What happened?

Okay the problem is in github-project.

A code like this

    await project.items.updateByContentId("I_kwDOG99yf85ej0m8", {
      "🎯 target date": "2023-02-17",
    });

results in a query like this

mutation setItemProperties($projectId: ID!, $itemId: ID!) {
  🎯targetdate: updateProjectV2ItemFieldValue(input: {projectId: $projectId, itemId: $itemId, fieldId: "PVTF_...", value: {date: "2023-02-17"}}) {
    projectV2Item {
      # ...
    }
  }
}

Which GraphQL doesn't like.

Would you be interested in contributing a fix?

  • yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions