Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inline views and fix operation name on model namespaced views #845

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

airhorns
Copy link
Contributor

@airhorns airhorns commented Apr 3, 2025

This adds support for inline views (views that are plain strings instead of .gelly files on the backed) and fixes support for named views mounted on models in the useView hook. See the tests!

[no-changelog-required]

@airhorns airhorns marked this pull request as ready for review April 5, 2025 01:26

const inlineViewQuery = `query InlineView($query: String!, $variables: JSONObject) {
gellyView(query: $query, variables: $variables)
}`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a hardcoded query we make available in the GraphQLSchemaGenerator for running inline views, it is weird lookin but users never have to see it

@airhorns airhorns removed the request for review from MillanWangGadget April 8, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant