WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><strong>Code-First</strong>: Set the <codeclass="language-text">IsOneOf</code> property on your <codeclass="language-text">InputObjectGraphType</code> to <codeclass="language-text">true</code>.</li>
582
582
<li><strong>Schema-First</strong>: Use the <codeclass="language-text">@oneOf</code> directive on the input type in your schema definition.</li>
583
583
<li><strong>Type-First</strong>: Use the <codeclass="language-text">[OneOf]</code> directive on the CLR class.</li>
584
584
</ul>
585
-
<p>Note: the feature is still a draft and has not made it into the official GraphQL spec yet.
586
-
It is expected to be added once it has been implemented in multiple libraries and proven to be useful.
587
-
It is not expected to change from the current draft.</p>
0 commit comments