We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7ded9 commit a674d5dCopy full SHA for a674d5d
juniper/src/schema/model.rs
@@ -614,6 +614,7 @@ mod test {
614
IceCream(IceCream),
615
}
616
juniper::graphql_interface!(Sweet: () where Scalar = <S> |&self| {
617
+ field is_brownie() -> bool { false }
618
instance_resolvers: |_| {
619
&Cake => match *self { Sweet::Cake(ref x) => Some(x), _ => None },
620
&IceCream => match *self { Sweet::IceCream(ref x) => Some(x), _ => None },
@@ -673,7 +674,9 @@ mod test {
673
674
APPLE
675
ORANGE
676
- interface Sweet
677
+ interface Sweet {
678
+ isBrownie: Boolean!
679
+ }
680
type Cake {
681
fresh: Boolean!
682
0 commit comments