// QueryAll returns an all results matching the built query
QueryAll returns an all results matching the built query
// QueryAll returns an all results matching the built query
func (s *Builder) QueryAll(ctx context.Context) ([]map[string]*dynamodb.AttributeValue, error) {
	if s.err != nil {
		return nil, s.err
	}
	if s.client == nil {
		return nil, ErrClientNotSet
	}
	query, _ := s.ToQuery()
	var results []map[string]*dynamodb.AttributeValue
	err := s.client.QueryIterator(ctx, &query, func(output *dynamodb.QueryOutput) error {
		results = append(results, output.Items...)
		return nil
	})
	return results, s.parseResult(results, err)
}
func ( s * Builder ) QueryAll ( ctx context . Context ) ( [ ] map [ string ] * dynamodb . AttributeValue , error ) { if s . err != nil { return nil , s . err } if s . client == nil { return nil , ErrClientNotSet } query , _ := s . ToQuery ( ) var results [ ] map [ string ] * dynamodb . AttributeValue err := s . client . QueryIterator ( ctx , & query , func ( output * dynamodb . QueryOutput ) error { results = append ( results , output . Items ... ) return nil } ) return results , s . parseResult ( results , err ) }
QueryAll returns an all results matching the built query
QueryAll returns an all results matching the built query