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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:bb968f98-bd47-27ac-1a91-c5bf82661148 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 9090:2E9831:5C632B:79EDF4:6B01A09A |
| html-safe-nonce | 7df6911211b67ec79ab8e0b583c0ccf93a661c9eafc198e5566533f08c20d63b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDkwOjJFOTgzMTo1QzYzMkI6NzlFREY0OjZCMDFBMDlBIiwidmlzaXRvcl9pZCI6IjQxOTkyNDAzOTU2NjQ2NzIyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f1b58a58c2cbc3ff858e93efa0bb1a33d8ee6ed7cdc793eeca4e70107cb3b08 |
| hovercard-subject-tag | discussion:3361227 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/graphql-java/graphql-java/2331/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/0331c881f928227b01a42f2f91925d9d9462f784ca4c667864e406e52872d9d3/graphql-java/graphql-java/discussions/2331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0331c881f928227b01a42f2f91925d9d9462f784ca4c667864e406e52872d9d3/graphql-java/graphql-java/discussions/2331 |
| og:image:alt | 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: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width