GraphQL proxy adds `id` field if more than one query is present

edited August 2018 in Technical questions

If a GraphQL query returns two arrays, the second array will have an id field added to each object in it, apparently set based on the current UNIX time.

The data comes in two separate fields under the data object, underParity and overParity in this case. There's no need for a unique id, and GraphQL itself does not mandate adding an id in that case. Please remove it :)



  • edited August 2018

    Hello Dan,

    The id is added by JSON data parser, not the proxy - and it appears only after parsing (please, check the console):

    While GraphQL server is just a data source, Webix widgets add the unique id for each parsed record (that do not have ids of their own) to maintain data coherence and provide support for all the client-side CRUD operations and filtering/sorting.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion