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 71c7e30 commit d2c5fa4Copy full SHA for d2c5fa4
store/test-store/tests/graphql/query.rs
@@ -2635,6 +2635,20 @@ fn can_query_meta() {
2635
run_query(QUERY4, |result, _| {
2636
assert!(result.has_errors());
2637
});
2638
+
2639
+ // metadata for number_gte 1. Returns subgraph head and a valid hash
2640
+ const QUERY5: &str = "query { _meta(block: { number_gte: 1 }) { block { hash number } } }";
2641
+ run_query(QUERY5, |result, _| {
2642
+ let exp = object! {
2643
+ _meta: object! {
2644
+ block: object! {
2645
+ hash: BLOCKS[2].hash.to_string(),
2646
+ number: 2
2647
+ },
2648
2649
+ };
2650
+ assert_eq!(extract_data!(result), Some(exp));
2651
+ });
2652
}
2653
2654
#[test]
0 commit comments