johnkpaul
01/09/2018, 11:02 PMallItems
query, but I can't find out how to leave off a where property on a query. Is there docs for the ctx.db.query
interface somewhere?huv1k
01/09/2018, 11:14 PMctx.db.query.items
huv1k
01/09/2018, 11:16 PMjohnkpaul
01/09/2018, 11:22 PMctx.db.query.items
johnkpaul
01/09/2018, 11:23 PMjohnkpaul
01/09/2018, 11:23 PMctx.db.query.items.all()
huv1k
01/09/2018, 11:26 PMreturn ctx.db.query.items({}, info)
huv1k
01/09/2018, 11:26 PMhuv1k
01/09/2018, 11:26 PMreturn ctx.db.query.items({
where: {
name
}
})
agartha
01/10/2018, 1:38 AMctx.db.query.[queryName](args, info)
. Args is whatever you would pass in as arguments to the query normally. The same goes for mutation and subscription.johnkpaul
01/10/2018, 3:18 PMjohnkpaul
01/10/2018, 3:41 PMctx.db.query.items({})
to get all of the itemsjohnkpaul
01/10/2018, 3:41 PMhuv1k
01/10/2018, 4:08 PMhuv1k
01/10/2018, 4:08 PMjohnkpaul
01/10/2018, 5:05 PMjohnkpaul
01/10/2018, 5:05 PM