The grid (core) ยท console.warn
the graphql adapter was built without `fields` or `selection`, so the default query selects only `id`. Name the fields your grid shows, or pass a custom `buildQuery`.
Printed by The grid (core), prefixed [lattice], since 1.27.0.
Warnings reference › source.graphql.selection
- Identifier
source.graphql.selection- Raised by
- The grid (core)
- Since
- 1.27.0
What happened
A GraphQL query has to name the fields it wants, and the adapter was told none. It asks for id alone, so every other column in the grid reads undefined - the request succeeds and the grid looks empty.
The fix
Pass fields (an array of names) or selection (a raw selection set), or build the query yourself with buildQuery.
The smallest fix
createGraphqlAdapter({ url, fields: ['id', 'name', 'amount'] });
Reference
Covered in full at the API reference.