Created
July 27, 2018 06:44
-
-
Save mhallin/37dce52078217b1de8e89977ff450f9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Query1 = [%graphql | |
{| | |
query { | |
someFieldWithInterfaceType { | |
id | |
...on ImplA { | |
a_only | |
} | |
...on ImplB { | |
b_only | |
} | |
} | |
} | |
|} | |
] | |
module FragA = [%graphql | |
{| | |
fragment on ImplA { | |
a_only | |
} | |
|}] | |
(* This should _ideally_ have the same type as Query1 *) | |
module Query2 = [%graphql | |
{| | |
query { | |
someFieldWithInterfaceType { | |
id | |
...on ImplA { | |
...FragA | |
} | |
...on ImplB { | |
b_only | |
} | |
} | |
} | |
|} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment