Skip to content

Instantly share code, notes, and snippets.

@kestred
kestred / juniper-example-sync-batching.rs
Last active March 1, 2019 21:46
Example juniper batching in synchronous call
// use other::stuff::{not_a_working_example};
use std::cell::RefCell;
use std::rc::Rc;
graphql_object!(Queries: () |&self| {
field many_rules() -> Vec<ProductRules> {
// ....
}
});
import {
Boolean,
Number,
String,
Literal,
Array,
Tuple,
Record,
Union,
Null,