Add SQL query cacheing
This commit is contained in:
2
corpus/5
2
corpus/5
@ -1,5 +1,5 @@
|
||||
query {
|
||||
product(id: 15) {
|
||||
product(id: $PRODUCT_ID, where: { price: { eq: $PRODUCT_PRICE } }) {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
17
corpus/6
17
corpus/6
@ -1,21 +1,6 @@
|
||||
query {
|
||||
products(
|
||||
# returns only 30 items
|
||||
limit: 30,
|
||||
|
||||
# starts from item 10, commented out for now
|
||||
# offset: 10,
|
||||
|
||||
# orders the response items by highest price
|
||||
order_by: { price: desc },
|
||||
|
||||
# no duplicate prices returned
|
||||
distinct: [ price ]
|
||||
|
||||
# only items with an id >= 30 and < 30 are returned
|
||||
where: { id: { and: { greater_or_equals: 20, lt: 28 } } }) {
|
||||
product(id: 15) {
|
||||
id
|
||||
name
|
||||
price
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user