cube-js / cube-js/cube

Query from resultSet.query() have queryType property, but isnt defined in Query type interface

Open
#6,764 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
one of the property returned from resultSet.query() is queryType
but in Query type interface, it doesnt have queryType
Typescript will have this error : "Property 'queryType' does not exist on type 'Query'

**To Reproduce**
Steps to reproduce the behavior:
1. create a queryBuilder component
2. in the render props of the queryBuilder, include resultSet as parameter
3. console.log resultSet.query(), returning object will have queryType property
4. but trying to access resultSet.query().queryType will result in typescript warning "Property 'queryType' does not exist on type 'Query'" in VSCode

**Expected behavior**
queryProperty is defined in the Query interface type definition. Or resultSet.query() shouldnt have queryType property.

**Screenshots**
Screenshot 2023-06-27 at 10 04 34 AM

Screenshot 2023-06-27 at 10 28 20 AM

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.