JSON Result Structure
Last updated
Last updated
The GraphQL JSON result will always follow a certain structure where only the dataset name and the nodes
array will change. With that in mind, if we look at the GraphqlResult
TypeScript interface, the JSON result will mostly follow this structure (except when Pagination is disabled if so continue reading):
GraphqlResult
TypeScript interface
The datasetName
is the only dynamic portion of the structure and in our demo will be users
.
with Pagination
without Pagination
Users demo (with Pagination)
If we consider that we defined a grid of Users and we provided the datasetName: 'users'
with 3 defined columns (firstName, lastName, email), note that id
will always be included as it is a requirement from SlickGrid itself and it must be unique ids. The JSON result could look like the following:
Users demo (without Pagination)