I try something like this:
allImageSharp (sort: {fields:id}){
edges {
node {
sizes {
src
originalImg
originalName
}
}
}
}
it works on the graphiQL web window but when I put it in my gatsby it says
GraphQLError: Argument "sort" has invalid value {fields: "id"}.
In field "fields": Expected type "ImageSharpConnectionSortByFieldsEnum", found "id".
Any ideas ? Thanks.
Ok I've found it :
allImageSharp (sort: {fields: [id]})
Enjoy...
Thank uuuuuuuu @pinaudnico
Is this documented anywhere? I couldn't find it even with the new docs search. :)
I've found it experimenting...
@pinaudnico THANK YOU.
Most helpful comment
Ok I've found it :
allImageSharp (sort: {fields: [id]})
Enjoy...