diff --git a/graphql_schema.json b/graphql_schema.json index 0c2c72f1..8a18024d 100644 --- a/graphql_schema.json +++ b/graphql_schema.json @@ -590,6 +590,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "admins", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AdminUser", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "post", "description": null, @@ -3829,4 +3853,4 @@ ] } } -} \ No newline at end of file +} diff --git a/tests_bucklescript/operations/interfaceFragmentOnObjectWithFieldDuplication.re b/tests_bucklescript/operations/interfaceFragmentOnObjectWithFieldDuplication.re new file mode 100644 index 00000000..97a28182 --- /dev/null +++ b/tests_bucklescript/operations/interfaceFragmentOnObjectWithFieldDuplication.re @@ -0,0 +1,25 @@ +module GraphQL_PPX = { + // mock + let deepMerge = (json1, _) => { + json1; + }; +}; + +module UserData = [%graphql + {| + fragment UserData on User { + id + } + |}; +]; + +module MyQuery = [%graphql + {| + query { + admins { + id + ...UserData + } + } + |} +];