Function query_tests_setup::parse_id
source · pub fn parse_id(
field: &str,
json: &Value,
path: &[&str],
meta: &str
) -> Result<String, TestError>
Expand description
Parses the JSON result of mutation sent to the Query Engine in order to extract the generated id. Returns a string that’s already formatted to be included in another query. eg: { “id”: “my_fancy_id” }