MrHertal / react-admin-amplify

AWS Amplify data provider for react-admin.
MIT License
159 stars 42 forks source link

TypeError: Cannot read properties of undefined (reading 'nextToken') #67

Closed seunghwako closed 2 years ago

seunghwako commented 2 years ago

There was an error using filter using query. When I submit the code, "TypeError: Cannot read properties of undefined (reading 'nextToken')" error occured. What's the problem?


- queries

export const b2BProductsByCode = / GraphQL / query B2BProductsByCode( $code: Int $id: ModelIDKeyConditionInput $sortDirection: ModelSortDirection $filter: ModelB2BProductFilterInput $limit: Int $nextToken: String ) { B2BProductsByCode( code: $code id: $id sortDirection: $sortDirection filter: $filter limit: $limit nextToken: $nextToken ) { items { id thumbImage { bucket region key } price productOption { name contents { name contents { name contents { name } } } } quantity eventText code is_del user_id product_id createdAt updatedAt } nextToken } } ;