Neill Kapron
03/28/2018, 8:11 PMNeill Kapron
03/28/2018, 8:11 PMNeill Kapron
03/28/2018, 8:12 PMNeill Kapron
03/28/2018, 8:12 PMNeill Kapron
03/28/2018, 8:12 PMNeill Kapron
03/28/2018, 8:13 PMChristian Genco
03/28/2018, 8:19 PMingredientOrder
json field to your Recipe
Christian Genco
03/28/2018, 8:20 PM{ingredientId: ORDER}
so you can do ingredients.sort_by(ing => recipe.ingredientOrder[ing.id])
Christian Genco
03/28/2018, 8:21 PMNeill Kapron
03/28/2018, 8:21 PMjoshjoe
03/28/2018, 9:29 PMeugenistoc
03/28/2018, 9:45 PMfinn
03/28/2018, 9:51 PMJonathan
03/28/2018, 10:00 PMjohhansantana
03/29/2018, 12:00 AMVendicto
03/29/2018, 7:41 AMrem
03/29/2018, 12:01 PMA unique constraint would be violated on Order. Details: Sorry, no more details available.
when sending a mutation to graph.cool - but when I manually run the mutation (in the playground), the mutation is fine.rem
03/29/2018, 12:02 PMVendicto
03/29/2018, 12:57 PMpatrick_madx
03/29/2018, 12:59 PMtype Quotation {
id: ID! @unique
costs: [Cost!]!
prices: [Float!]! // Sum of costs
}
type Cost {
...
values: [Float!]!
currency: String!
}
I'd expect to have my own resolver, so this works:
export const Quotation = {
prices: async (parent, args, ctx: Context, info) => {
return [1,2,3]
},
}
Yet how do I rerieve the costs? I don't have a `quotation id`/`cost ids` somewhere...apertureless
03/29/2018, 1:14 PMapertureless
03/29/2018, 1:17 PMAubron Wood (ScoreShots)
03/29/2018, 1:17 PMAubron Wood (ScoreShots)
03/29/2018, 1:19 PMAubron Wood (ScoreShots)
03/29/2018, 1:20 PMAubron Wood (ScoreShots)
03/29/2018, 1:20 PMAubron Wood (ScoreShots)
03/29/2018, 1:20 PMapertureless
03/29/2018, 1:20 PMAubron Wood (ScoreShots)
03/29/2018, 1:20 PMapertureless
03/29/2018, 1:26 PM