Bug report: slice fields with uppercase characters are ignored in GraphQL queries

Hello hello :wave:

I'm migrating some of our Rest API queries to GraphQL and found a bug. If you add a field with any uppercase character to a slice, it won't show up on your GraphQL queries.

How to repro:

  • Create a slice with slice machine
  • Add a text field name "test" and another one name "Testfield"
  • Try to query for "Testfield" on GraphQL and fail.

Here's an example:

I've added a Testfield field to my slice.

I can see it on the dashboard.

But it won't even show up in GraphiQL docs for this slice in particular.

I'm not sure if the bug is with GraphQL queries or if the slice-machine should even allow uppercase characters on field keys :sweat_smile:

Hello @vitor1, thanks for sharing your use case. We'll look into it and come back as soon as possible.

1 Like

Hello again, just to let you know that we've logged this as a bug in our backlog. The UI should indicate that uppercase characters shouldn't be permitted in the input.

To fix it in your Slice, please change the API ID to: testfield

Thanks for sharing this with us.

1 Like