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

UUID fields in Structs do not get GraphQL encoded #1762

Open
Swahvay opened this issue Feb 23, 2024 · 1 comment
Open

UUID fields in Structs do not get GraphQL encoded #1762

Swahvay opened this issue Feb 23, 2024 · 1 comment

Comments

@Swahvay
Copy link
Contributor

Swahvay commented Feb 23, 2024

As the title says. A sample returned from a graphQL query from the following field definition:

horses: StructTypeAsList({
  tsType: 'CompetitionEventHorseEntry',
  fields: {
    horseId: UUIDType({
      nullable: true,
      foreignKey: {
        schema: 'Horse',
        column: 'ID',
      },
    }),
    horseName: TextType({
      nullable: true,
      maxLen: 200,
    }),
  },
}),
"id": "bm9kZTpjb21wZXRpdGlvbkV2ZW50OjdhZTQxMWMwLTViNzYtNDZiYi04OWQxLWI0YTU3MjM4MWU2Ng==",
"entries": {
  "nodes": [
    {
      "horses": [
        {
          "horseId": "019b6ffb-ca2d-4698-8999-51a544c1f8da",
          "horseName": null
        }
      ],
    },
  ],
},
@Swahvay
Copy link
Contributor Author

Swahvay commented Feb 23, 2024

In fact, these should be Node types in GraphQL, right?

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

No branches or pull requests

1 participant