hasura / hasura/graphql-engine

server/bigquery: extend support for computed fields in query arguments

Open
#8,526 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

This feature needs to be accomplished after implementing basic support for computed fields in BigQuery backends (see https://github.com/hasura/graphql-engine/issues/8521). The computed fields need to be included in,
- [ ] boolean expressions in `where` input field – filtering rows
- [ ] `order_by` fields – sorting rows

Postgres reference docs:
- sorting - https://hasura.io/docs/latest/graphql/core/databases/postgres/queries/sorting/#sorting-based-on-computed-fields
- filtering - https://hasura.io/docs/latest/graphql/core/databases/postgres/queries/query-filters/#filter-based-on-computed-fields

Contributor guide

Open the contributing guide

Research direction

Start with issue #8521 for the prerequisite computed-field support, then compare the linked Postgres sorting and filtering documentation with the BigQuery backend. The work is done when computed fields are accepted in boolean expressions for filtering and in order_by fields for sorting.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, graphql
Domain
api, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.