Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
muescha committed Aug 12, 2020
1 parent 21c57e9 commit 2644bd7
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions docs/docs/query-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,37 @@ One additional feature that Gatsby supports is the `elemMatch` query. This query
A contrived `elemMatch` example:

```js
filter = {a: { elemMatch: { b: { eq: 5 } } } }
filter = { a: { elemMatch: { b: { eq: 5 } } } }

nodes = [
{ id: 1, a: [{ a: 1, b: 8, c: 7 }, { a: 3, b: 5, c: 6 }] },
{ id: 2, a: [{ a: 2, b: 4, c: 6 }, { a: 6, b: 3, c: 3 }] },
{ id: 3, a: [{ a: 3, b: 5, c: 3 }, { a: 5, b: 4, c: 1 }] },
{ id: 4, a: [{ a: 4, b: 7, c: 1 }, { a: 9, b: 1, c: 6 }] },
{
id: 1,
a: [
{ a: 1, b: 8, c: 7 },
{ a: 3, b: 5, c: 6 },
],
},
{
id: 2,
a: [
{ a: 2, b: 4, c: 6 },
{ a: 6, b: 3, c: 3 },
],
},
{
id: 3,
a: [
{ a: 3, b: 5, c: 3 },
{ a: 5, b: 4, c: 1 },
],
},
{
id: 4,
a: [
{ a: 4, b: 7, c: 1 },
{ a: 9, b: 1, c: 6 },
],
},
]
```

Expand Down

0 comments on commit 2644bd7

Please sign in to comment.