hasura / hasura/graphql-engine

Snowflake: Logical Models

Open
#9,670 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

## Feature Description
Introducing Logical Models: A Powerful New Feature Coming Soon to Hasura for Snowflake
_Level up your Hasura experience with Logical Models to create custom GraphQL types without the need for database views or functions._

Hello Hasura enthusiasts!

We're excited to announce a powerful new feature coming soon to Hasura for Snowflake users: Logical Models. This feature will enable you to define custom GraphQL types that don't directly map to a database object, giving you more flexibility and control over your Hasura-generated GraphQL schema. With Logical Models, you'll be able to harness the full power of SQL within Hasura without the need to create database objects that require DDL privileges.

## What are Logical Models?
Logical Models are a new Hasura GraphQL type that doesn't mirror a concrete database object. Instead, when creating a Logical Model, you define native SQL queries to use as a model and map that model to a Hasura GraphQL type. You can also parameterize these queries to pass arguments, allowing you to create custom and dynamic GraphQL types that suit your specific needs.

## Current status (design, alpha, beta etc.)
- In the hopper

## Resources (e.g. RFCs)
The motivation and design of this feature came in part from the RFC for Parameterized Queries.
[rfc (wip): parameterized queries #7473](https://github.com/hasura/graphql-engine/issues/7473)

Contributor guide

Open the contributing guide

Research direction

No implementation files, tests, or entry points are identified in the issue. Start by reading the linked Parameterized Queries RFC (#7473) and clarify the Logical Models design and scope for Snowflake; the work is done when an agreed implementation plan and acceptance criteria exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, sql
Domain
api, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.