-
-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Description
Problem:
025-09-01 12:20:30Error Gallery.Create.Post [Default Data For Path]: returned error: Error: graphQL query failed: 422 - {"errors":[{"message":"Variable \"$id\" of type \"ID\" used in position expecting type \"ID!\".","locations":[{"line":1,"column":49}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}},{"message":"Cannot query field \"path\" on type \"Gallery\". Did you mean \"paths\" or \"date\"?","locations":[{"line":1,"column":63}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}],"data":null}. Query: query findGallery($id: ID) { findGallery(id: $id) { path }}. Variables: map[id:179] at github.com/stashapp/stash/pkg/javascript.(*GQL).AddToVM.(*GQL).gqlRequestFunc.func1 (native)
Cause
function getGalleryPath(ID) {
var query =
"\
query findGallery($id: ID) {\
findGallery(id: $id) {\
path\
}\
}";
Why?
There are actually 2 issues here
Problem 1: findGallery takes a ID! not ID
Problem 2: findGallery returns Gallery which has not path variable.
Metadata
Metadata
Assignees
Labels
No labels