Awey
07/31/2020, 9:45 PM{
project(id: "40f04272-35eb-4b38-9d3b-b47df2efe897") {
id
description
columns {
id
name
notes {
id
title
text
position
}
}
}
}
Or
{
column(where:{id:"8ff1cdb8-17f1-4f40-b3de-1676567d823a"}){
name
notes {
id
title
text
position
}
}
}
I always want the notes array objects to be in a.position - b.position
order.Awey
07/31/2020, 9:55 PMTypeError: Cannot assign to read only property '0' of object '[object Array]'
so I think I need to do it at at the resolver levelRyan
08/03/2020, 6:39 AM{
project(id: "40f04272-35eb-4b38-9d3b-b47df2efe897") {
id
description
columns {
id
name
notes(orderBy: { position: ASC }) {
id
title
text
position
}
}
}
}
For this you would have to add ordering: true
to your notes in the Project object definition in Nexus