groq-js
groq-js copied to clipboard
JavaScript implementation of GROQ, the query language for JSON
``` * [some filters] { arrayField[] -> {...}, // works everywhere arrayField[] | order (field) -> {...}, // should work, but does not "arrayField": arrayField[] | order (field) -> {...},...
First of all, thank you for the amazing work. When accessing properties deep nested inside object, query fails silently with null data. simple way to reproduce : ```ts describe('failing', ()...
**Description** Starting from 0.3.0 version groq-js doesn't support **To Reproduce** Make query: `evaluate(parse('*[$start..$end]'), { dataset: [], params: { start: 0, end: 1 } })` **Expected behavior** The result should be...
See [this Sanity issue](https://github.com/sanity-io/sanity/issues/2424).
I expected the following to throw an error: ```js let query = `name == $name` let tree = parse(query) let value = await evaluate(tree, {dataset: [], params: {}}) let data...
Hi, I spent a few hours fighting this issue when trying to use `next-sanity`'s previewSubscriptionHook. I traced it down to this package. Basically there is a syntax error for this...
More of a performance question than a bug report, but I don't see a more suitable location. I get that groq has capabilities that JMESPath does not, but as they...
I would like to specify what `key` that the `_ref` implementation searches on. Right now, the following data structure: ``` [ { _id: "1", text: "Foo", parent: { _ref: "2"...
Very strange issue here. I've been using `groq-js` to run queries during Gatsby's build process and so far everything has worked fine. Then all of a sudden today I getting...