Comments (1)
Hi! Thanks for the request!
We've been discussing a similar approach ourselves internally, however with a bit different API. We would like the groq
package to be independent in itself to the typegen module, so what we've been thinking about is adding a defineQuery(query: string): string
-export to groq(For the same reasons with tagged template literals as you mention). Something similar to have I've outlined here, though it requires some changes to the sanity client as well before the playground is happy. We don't have any timeline on it atm, but any contribution would be appreciated
from sanity.
Related Issues (20)
- Hotspot cropping preview doesn't respect curent crop HOT 4
- Mark selected menu item doesn't work as it works for default menu items HOT 1
- TypeGen does not generate correct type when querying an array containing multiple references types HOT 1
- Opening one collapsible column field causes it's neighbor to disappear because they are bottom aligned. HOT 1
- Pasting in PTE not working on Firefox HOT 1
- Cannot delete documents from a migration script HOT 2
- error cannot read properties of null (reading 'scrollTop') HOT 2
- Text isn't pasted into Portable Text Editor in Firefox HOT 1
- Limiting documents in document pane to 2000 HOT 1
- Type generation incompatible with Astro
- Documents are appearing in Gatsby / Gatsby's GraphQL browser / the Vision tool / CLI, but missing in Studio HOT 2
- [urgent] Webhook deleted but still pinging the middleware at Vercel HOT 1
- Unprotected use of process.env. SANITY_INTERNAL_ENV breaks Studio when it's created from client, as in @sanity/astro HOT 2
- Insert menu for portable text editor blocks
- Bug when using compnent in adocument HOT 1
- Possible ESM issue when running sanity typegen extract
- "Select" button no longer appears in image field HOT 6
- Sanity's dependency on `@sentry/react` should not exist - devDependency instead HOT 1
- Peer deps issue when running `npx sainty init` in fresh nextjs app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanity.