problem on sorting with graphql #3065
Labels
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
type: question or discussion
Issue discussing or asking a question about Gatsby
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.
The text was updated successfully, but these errors were encountered: