This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
Has anyone encountered an issue with Lacinia where query variables which are lists fail to parse?
In particular, if there’s an InputObject that has a field which is a list, I cannot pass that value down as a query variable:
# this works
query WorkingQuery($search: [EDN_Filter]) {
searchPosts(search: $search) {
totalCount
nodes {
title
}
}
}
But this doesn’t:
mutation ChangeStatus($filters: [EDN_Filter], $status_id: ID!) {
changeStatus(
statusId: $status_id,
postSelection: {
filters: $filters
selection: {without_ids: []}
} ) {
title
}
}
I have seen this before yeah, does it help to change the argument to be (whaver type is) a postSelection
? As an intermediate workaround ^^
I get this error:
{
"errors": [
{
"message": "Exception applying arguments to field `changeStatus': For argument `postSelection', unknown argument `selection'.",
"locations": [
{
"line": 48,
"column": 3
}
],
"extensions": {
"field": "__Mutations/changeStatus",
"argument": "__Mutations/changeStatus.postSelection",
"defined-arguments": null
}
}
]
}
(changed from the actual schema for terseness and clarity)