constitutional-coralC
Refine2y ago
243 replies
constitutional-coral

How to define GraphQL Schema?

Hey I am running a backend django + strawberry and refine with graphql to make some calls and read data.
I keep getting
TypeError: Cannot read properties of undefined (reading 'count')


When trying to run a simple:
const { data, isLoading, error } = useList({
resource: "vehicle_list",
meta: { gqlQuery: VEHICLES_LIST_QUERY },
});


with this query:
export const VEHICLES_LIST_QUERY = gql query VehiclesList { vehicles { id vin make model year driver { id name email licenseNumber } gateway { id serialNumber firmwareVersion } } } ;


Is there a specific Graphql query response format that suppose to work?
Seems like it is expecting data in a certain format.
Was this page helpful?