René's URL Explorer Experiment


Title: Why is my Interface-typed field fetcher not called when "... on Type" used? · graphql-java/graphql-java · Discussion #2331 · GitHub

Open Graph Title: Why is my Interface-typed field fetcher not called when "... on Type" used? · graphql-java/graphql-java · Discussion #2331

X Title: Why is my Interface-typed field fetcher not called when "... on Type" used? · graphql-java/graphql-java · Discussion #2331

Description: Why is my Interface-typed field fetcher not called when "... on Type" used?

Open Graph Description: What am I doing wrong? There are no exceptions visible and the response comes back for this query: mutation { mut: field1(argument2: "stringValue1", argument1:"stringValue2") { bundle: bundle { A: ...

X Description: What am I doing wrong? There are no exceptions visible and the response comes back for this query: mutation { mut: field1(argument2: "stringValue1", argument1:"stringValue2") { ...

Opengraph URL: https://github.com/graphql-java/graphql-java/discussions/2331

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Why is my Interface-typed field fetcher not called when \"... on Type\" used?","text":"\u003cp dir=\"auto\"\u003eWhat am I doing wrong?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThere are no exceptions visible and the response comes back for this query:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-graphql notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"mutation {\n    mut: field1(argument2: \u0026quot;stringValue1\u0026quot;, argument1:\u0026quot;stringValue2\u0026quot;) {\n        bundle: bundle {\n            A: things {\n                id: id\n                container: container {\n                    __typename\n                    ... on ThingContainerInterface {\n                        id: id\n                    }\n                    ... on Box {\n                        name: name\n                        content {\n                            __typename\n                            id: id\n                        }\n                    }\n                }\n            }            \n            B: things {\n                id: id\n                container {\n                    __typename\n                    id: id\n                    name: name\n                }\n            }\n        }\n    }\n}\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-k\"\u003emutation\u003c/span\u003e {\n    \u003cspan class=\"pl-s\"\u003emut\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003efield1\u003c/span\u003e(\u003cspan class=\"pl-v\"\u003eargument2\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003estringValue1\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e, \u003cspan class=\"pl-v\"\u003eargument1\u003c/span\u003e:\u003cspan class=\"pl-s\"\u003e\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003estringValue2\u003cspan class=\"pl-pds\"\u003e\"\u003c/span\u003e\u003c/span\u003e) {\n        \u003cspan class=\"pl-s\"\u003ebundle\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003ebundle\u003c/span\u003e {\n            \u003cspan class=\"pl-s\"\u003eA\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003ethings\u003c/span\u003e {\n                \u003cspan class=\"pl-s\"\u003eid\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003eid\u003c/span\u003e\n                \u003cspan class=\"pl-s\"\u003econtainer\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003econtainer\u003c/span\u003e {\n                    \u003cspan class=\"pl-v\"\u003e__typename\u003c/span\u003e\n                    \u003cspan class=\"pl-k\"\u003e...\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eon\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eThingContainerInterface\u003c/span\u003e {\n                        \u003cspan class=\"pl-s\"\u003eid\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003eid\u003c/span\u003e\n                    }\n                    \u003cspan class=\"pl-k\"\u003e...\u003c/span\u003e \u003cspan class=\"pl-k\"\u003eon\u003c/span\u003e \u003cspan class=\"pl-c1\"\u003eBox\u003c/span\u003e {\n                        \u003cspan class=\"pl-s\"\u003ename\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003ename\u003c/span\u003e\n                        \u003cspan class=\"pl-v\"\u003econtent\u003c/span\u003e {\n                            \u003cspan class=\"pl-v\"\u003e__typename\u003c/span\u003e\n                            \u003cspan class=\"pl-s\"\u003eid\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003eid\u003c/span\u003e\n                        }\n                    }\n                }\n            }            \n            \u003cspan class=\"pl-s\"\u003eB\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003ethings\u003c/span\u003e {\n                \u003cspan class=\"pl-s\"\u003eid\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003eid\u003c/span\u003e\n                \u003cspan class=\"pl-v\"\u003econtainer\u003c/span\u003e {\n                    \u003cspan class=\"pl-v\"\u003e__typename\u003c/span\u003e\n                    \u003cspan class=\"pl-s\"\u003eid\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003eid\u003c/span\u003e\n                    \u003cspan class=\"pl-s\"\u003ename\u003c/span\u003e: \u003cspan class=\"pl-v\"\u003ename\u003c/span\u003e\n                }\n            }\n        }\n    }\n}\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSpecifically:\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003eYou see result keys / aliases equal to the field names to help me de-anonymize schema a bit for easier consumption.\u003c/li\u003e\n\u003cli\u003e\u003ccode class=\"notranslate\"\u003econtainer\u003c/code\u003e field is of type \u003ccode class=\"notranslate\"\u003eThingContainerInterface\u003c/code\u003e so that \u003ccode class=\"notranslate\"\u003eid\u003c/code\u003e field selection has no way of not applying in \u003ccode class=\"notranslate\"\u003eA\u003c/code\u003e. Furthermore, \u003ccode class=\"notranslate\"\u003eBox\u003c/code\u003e is the only concrete type implementing \u003ccode class=\"notranslate\"\u003eThingContainerInterface\u003c/code\u003e as well... so \u003ccode class=\"notranslate\"\u003ename\u003c/code\u003e and \u003ccode class=\"notranslate\"\u003econtent\u003c/code\u003e should come as well for \u003ccode class=\"notranslate\"\u003eA\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eAdditionally \u003ccode class=\"notranslate\"\u003eid\u003c/code\u003e and \u003ccode class=\"notranslate\"\u003ename\u003c/code\u003e are actually available in all types\u003c/li\u003e\n\u003cli\u003eThe response/result does not include \u003ccode class=\"notranslate\"\u003eid\u003c/code\u003e or \u003ccode class=\"notranslate\"\u003ename\u003c/code\u003e for \u003ccode class=\"notranslate\"\u003e/mut/bundle/A[*]/container\u003c/code\u003e but does so for \u003ccode class=\"notranslate\"\u003e/mut/bundle/B[*]/container\u003c/code\u003e. Notice the \u003ccode class=\"notranslate\"\u003e__typename\u003c/code\u003es in \u003ccode class=\"notranslate\"\u003eB\u003c/code\u003e - they are as expected.\u003c/li\u003e\n\u003cli\u003eI implemented some logging to troubleshoot. My fetcher isn't even called of \u003ccode class=\"notranslate\"\u003eid\u003c/code\u003e, \u003ccode class=\"notranslate\"\u003ename\u003c/code\u003e or \u003ccode class=\"notranslate\"\u003econtent\u003c/code\u003e for \u003ccode class=\"notranslate\"\u003e/mut/bundle/A[*]/container\u003c/code\u003e. Here's that log (in order of invocation):\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"                             environment              environment\n             environment     .getExecutionStepInfo()  .getExecutionStepInfo()\nFIELD        .getSource()    .getResultKey()          .getPath()\n========================================================================================\nbundle       Bundle          bundle                   /mut/bundle\nid           Thing#2         id                       /mut/bundle/A[0]/id\ncontainer    Thing#2         container                /mut/bundle/A[0]/container\nid           Thing#3         id                       /mut/bundle/A[1]/id\ncontainer    Thing#3         container                /mut/bundle/A[1]/container\nid           Thing#4         id                       /mut/bundle/A[2]/id\ncontainer    Thing#4         container                /mut/bundle/A[2]/container\nid           Thing#1         id                       /mut/bundle/A[3]/id\ncontainer    Thing#1         container                /mut/bundle/A[3]/container\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \nid           Thing#2         id                       /mut/bundle/B[0]/id\ncontainer    Thing#2         container                /mut/bundle/B[0]/container\nid           Box#1           id                       /mut/bundle/B[0]/container/id   \u0026lt;--\nname         Box#1           name                     /mut/bundle/B[0]/container/name \u0026lt;--\nid           Thing#3         id                       /mut/bundle/B[1]/id\ncontainer    Thing#3         container                /mut/bundle/B[1]/container\nid           Box#2           id                       /mut/bundle/B[1]/container/id   \u0026lt;--\nname         Box#2           name                     /mut/bundle/B[1]/container/name \u0026lt;--\nid           Thing#4         id                       /mut/bundle/B[2]/id\ncontainer    Thing#4         container                /mut/bundle/B[2]/container\nid           Box#2           id                       /mut/bundle/B[2]/container/id   \u0026lt;--\nname         Box#2           name                     /mut/bundle/B[2]/container/name \u0026lt;--\nid           Thing#1         id                       /mut/bundle/B[3]/id\ncontainer    Thing#1         container                /mut/bundle/B[3]/container\nid           Box#1           id                       /mut/bundle/B[3]/container/id   \u0026lt;--\nname         Box#1           name                     /mut/bundle/B[3]/container/name \u0026lt;--\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode class=\"notranslate\"\u003e                             environment              environment\n             environment     .getExecutionStepInfo()  .getExecutionStepInfo()\nFIELD        .getSource()    .getResultKey()          .getPath()\n========================================================================================\nbundle       Bundle          bundle                   /mut/bundle\nid           Thing#2         id                       /mut/bundle/A[0]/id\ncontainer    Thing#2         container                /mut/bundle/A[0]/container\nid           Thing#3         id                       /mut/bundle/A[1]/id\ncontainer    Thing#3         container                /mut/bundle/A[1]/container\nid           Thing#4         id                       /mut/bundle/A[2]/id\ncontainer    Thing#4         container                /mut/bundle/A[2]/container\nid           Thing#1         id                       /mut/bundle/A[3]/id\ncontainer    Thing#1         container                /mut/bundle/A[3]/container\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \nid           Thing#2         id                       /mut/bundle/B[0]/id\ncontainer    Thing#2         container                /mut/bundle/B[0]/container\nid           Box#1           id                       /mut/bundle/B[0]/container/id   \u0026lt;--\nname         Box#1           name                     /mut/bundle/B[0]/container/name \u0026lt;--\nid           Thing#3         id                       /mut/bundle/B[1]/id\ncontainer    Thing#3         container                /mut/bundle/B[1]/container\nid           Box#2           id                       /mut/bundle/B[1]/container/id   \u0026lt;--\nname         Box#2           name                     /mut/bundle/B[1]/container/name \u0026lt;--\nid           Thing#4         id                       /mut/bundle/B[2]/id\ncontainer    Thing#4         container                /mut/bundle/B[2]/container\nid           Box#2           id                       /mut/bundle/B[2]/container/id   \u0026lt;--\nname         Box#2           name                     /mut/bundle/B[2]/container/name \u0026lt;--\nid           Thing#1         id                       /mut/bundle/B[3]/id\ncontainer    Thing#1         container                /mut/bundle/B[3]/container\nid           Box#1           id                       /mut/bundle/B[3]/container/id   \u0026lt;--\nname         Box#1           name                     /mut/bundle/B[3]/container/name \u0026lt;--\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eI attached anonymized-then-partially-prettified schema and the response. For convenience here's the response too:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-js notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"{\n  \u0026quot;data\u0026quot;: {\n    \u0026quot;mut\u0026quot;: {\n      \u0026quot;bundle\u0026quot;: {\n        \u0026quot;A\u0026quot;: [\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#2\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot; // \u0026lt;-- notice the type - but no id or name\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#3\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot; // \u0026lt;-- notice the type - but no id or name\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#4\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot; // \u0026lt;-- notice the type - but no id or name\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#1\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot; // \u0026lt;-- notice the type - but no id or name\n            }\n          }\n        ],\n        \u0026quot;B\u0026quot;: [\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#2\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot;,\n              \u0026quot;id\u0026quot;: \u0026quot;Box#1\u0026quot;,\n              \u0026quot;name\u0026quot;: \u0026quot;Coyote\u0026quot;\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#3\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot;,\n              \u0026quot;id\u0026quot;: \u0026quot;Box#2\u0026quot;,\n              \u0026quot;name\u0026quot;: \u0026quot;Road Runner\u0026quot;\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#4\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot;,\n              \u0026quot;id\u0026quot;: \u0026quot;Box#2\u0026quot;,\n              \u0026quot;name\u0026quot;: \u0026quot;Road Runner\u0026quot;\n            }\n          },\n          {\n            \u0026quot;id\u0026quot;: \u0026quot;Thing#1\u0026quot;,\n            \u0026quot;container\u0026quot;: {\n              \u0026quot;__typename\u0026quot;: \u0026quot;Box\u0026quot;,\n              \u0026quot;id\u0026quot;: \u0026quot;Box#1\u0026quot;,\n              \u0026quot;name\u0026quot;: \u0026quot;Coyote\u0026quot;\n            }\n          }\n        ]\n      }\n    }\n  }\n}\"\u003e\u003cpre class=\"notranslate\"\u003e\u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n  \u003cspan class=\"pl-s\"\u003e\"data\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n    \u003cspan class=\"pl-s\"\u003e\"mut\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n      \u003cspan class=\"pl-s\"\u003e\"bundle\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n        \u003cspan class=\"pl-s\"\u003e\"A\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#2\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// \u0026lt;-- notice the type - but no id or name\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#3\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// \u0026lt;-- notice the type - but no id or name\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#4\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// \u0026lt;-- notice the type - but no id or name\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#1\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e \u003cspan class=\"pl-c\"\u003e// \u0026lt;-- notice the type - but no id or name\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n        \u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n        \u003cspan class=\"pl-s\"\u003e\"B\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e[\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#2\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box#1\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"name\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Coyote\"\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#3\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box#2\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"name\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Road Runner\"\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#4\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box#2\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"name\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Road Runner\"\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Thing#1\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n            \u003cspan class=\"pl-s\"\u003e\"container\"\u003c/span\u003e: \u003cspan class=\"pl-kos\"\u003e{\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"__typename\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"id\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Box#1\"\u003c/span\u003e\u003cspan class=\"pl-kos\"\u003e,\u003c/span\u003e\n              \u003cspan class=\"pl-s\"\u003e\"name\"\u003c/span\u003e: \u003cspan class=\"pl-s\"\u003e\"Coyote\"\u003c/span\u003e\n            \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n          \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n        \u003cspan class=\"pl-kos\"\u003e]\u003c/span\u003e\n      \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n    \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n  \u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\n\u003cspan class=\"pl-kos\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eNote: I have verified - my code does return the correct, non-null \u003ccode class=\"notranslate\"\u003eBox\u003c/code\u003e for \u003ccode class=\"notranslate\"\u003eA\u003c/code\u003es. ... didn't really need to as you can see the \u003ccode class=\"notranslate\"\u003e__typename\u003c/code\u003e showing properly inside \u003ccode class=\"notranslate\"\u003eA\u003c/code\u003e as well, just not its fields.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://github.com/graphql-java/graphql-java/files/6461831/schema-and-response.zip\"\u003eschema-and-response.zip\u003c/a\u003e\u003c/p\u003e","upvoteCount":1,"answerCount":5,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eThis was not the issue. The issue was in my code and remained undetected by graphql-java. I had two instances of these types (with the same name) because I built them twice (using the same GraphQLObjectType.Builder instance. Only one of these was registered with the schema builder but another was used instead of type references in some cases. After ensuring that a single instance is built and used (or type references are), the issue disappeared.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806"}}}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:bb968f98-bd47-27ac-1a91-c5bf82661148
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id9090:2E9831:5C632B:79EDF4:6B01A09A
html-safe-nonce7df6911211b67ec79ab8e0b583c0ccf93a661c9eafc198e5566533f08c20d63b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkwOjJFOTgzMTo1QzYzMkI6NzlFREY0OjZCMDFBMDlBIiwidmlzaXRvcl9pZCI6IjQxOTkyNDAzOTU2NjQ2NzIyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9f1b58a58c2cbc3ff858e93efa0bb1a33d8ee6ed7cdc793eeca4e70107cb3b08
hovercard-subject-tagdiscussion:3361227
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/graphql-java/graphql-java/2331/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/0331c881f928227b01a42f2f91925d9d9462f784ca4c667864e406e52872d9d3/graphql-java/graphql-java/discussions/2331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0331c881f928227b01a42f2f91925d9d9462f784ca4c667864e406e52872d9d3/graphql-java/graphql-java/discussions/2331
og:image:altWhat am I doing wrong? There are no exceptions visible and the response comes back for this query: mutation { mut: field1(argument2: "stringValue1", argument1:"stringValue2") { bundle: bundle { A: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/discussions/2331#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fdiscussions%2F2331
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fdiscussions%2F2331
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2331
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2331
Reloadhttps://github.com/graphql-java/graphql-java/discussions/2331
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests35 (35)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/insights
Answered https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
aleksandarsusnjar https://github.com/aleksandarsusnjar
Q&Ahttps://github.com/graphql-java/graphql-java/discussions/categories/q-a
Why is my Interface-typed field fetcher not called when "... on Type" used? https://github.com/graphql-java/graphql-java/discussions/2331#top
aleksandarsusnjar https://github.com/aleksandarsusnjar
Answered https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
Return to tophttps://github.com/graphql-java/graphql-java/discussions/2331#top
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 11, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussion-3361227
schema-and-response.ziphttps://github.com/graphql-java/graphql-java/files/6461831/schema-and-response.zip
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 15, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806
View full answer https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806
Oldest https://github.com/graphql-java/graphql-java/discussions/2331?sort=old
Newest https://github.com/graphql-java/graphql-java/discussions/2331?sort=new
Top https://github.com/graphql-java/graphql-java/discussions/2331?sort=top
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 13, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-733868
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 13, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-735196
https://spectrum.chat/graphql-java/general/implement-datafetcher-for-a-field-that-return-an-interface-type~2d6cc713-d8a9-43c5-89ca-def0d11d2f4chttps://spectrum.chat/graphql-java/general/implement-datafetcher-for-a-field-that-return-an-interface-type~2d6cc713-d8a9-43c5-89ca-def0d11d2f4c
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 13, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-735576
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 13, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-735649
#2336https://github.com/graphql-java/graphql-java/issues/2336
Please reload this pagehttps://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/graphql-java/graphql-java/discussions/2331
aleksandarsusnjar https://github.com/aleksandarsusnjar
May 15, 2021 https://github.com/graphql-java/graphql-java/discussions/2331#discussioncomment-740806
aleksandarsusnjarhttps://github.com/aleksandarsusnjar
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fdiscussions%2F2331
🙏 Q&A https://github.com/graphql-java/graphql-java/discussions/categories/q-a
https://github.com/aleksandarsusnjar
https://github.com/graphql-java/graphql-java/discussions/2331
https://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.