graphql is adding underscore to the response #3139
-
|
Hi, I have an endpoint that returns a response similar to this from the swagger API: and for some reason when I call it from the graphql I get the keys with _ prefix like that: Why does it add this underscore? is there a way to disable it? In addition, I get one extra record _openAPIToGraphQL: Is there a way to exclude this additional record? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Because in GraphQL, it is not possible to have a field with the name starting with a number so it adds a prefix and you get the GraphQL response like that. You can check the generated GraphQL Schema. |
Beta Was this translation helpful? Give feedback.
Because in GraphQL, it is not possible to have a field with the name starting with a number so it adds a prefix and you get the GraphQL response like that. You can check the generated GraphQL Schema.